using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript1 : MonoBehaviour
{
public float mo;
public float run_power;
public float jump;
public bool is_ground;
//public bool can_jump;
//public LayerMask groundLayer;
// Start is called before the first frame update
void Start()
{
Physics.gravity = new Vector3(0, -35, 0);
}
// Update is called once per frame
void Update()
{
if (is_ground == true)
{
GetComponent<Animator>().SetBool("jump", false);
}
float selfspeed = Mathf.Abs(GetComponent<Rigidbody>().velocity.z);
float selfspeed_Y = GetComponent<Rigidbody>().velocity.y;
GetComponent<Animator>().SetFloat("vec", selfspeed);
GetComponent<Animator>().SetFloat("vec_y", selfspeed_Y);
if (selfspeed <
using System.Collections;using System.Collections.Generic;using UnityEngine;public class NewBehaviourScript1 : MonoBehaviour{ public float mo; public float run_power; public float jump; public bool is_ground; //public bool can_ju.