// Use this for initialization void Start() { health = 1; attacking = false; anim = gameObject.GetComponent <Animator>(); fallSound = GameObject.Find("OniFallSound").GetComponent <AudioSource>(); c = SideChar.Get(); }
void Start() { anim = GetComponent <Animator>(); forward = Camera.main.transform.forward; forward.y = 0; forward = Vector3.Normalize(forward); right = Quaternion.Euler(new Vector3(0, 90, 0)) * forward; s_RigidBody = GetComponent <Rigidbody>(); c = SideChar.Get(); grounded = true; dead = false; }
void Start() { anim = GetComponent <Animator>(); forward = Camera.main.transform.forward; forward.y = 0; forward = Vector3.Normalize(forward); right = Quaternion.Euler(new Vector3(0, 90, 0)) * forward; s_RigidBody = GetComponent <Rigidbody>(); c = SideChar.Get(); grounded = true; jumpSound = GameObject.Find("JumpSound").GetComponent <AudioSource>(); walkSound = GameObject.Find("WalkSound").GetComponent <AudioSource>(); //rollSound = GameObject.Find("RollSound").GetComponent<AudioSource>(); revive(); dead = false; }
void Start() { c = SideChar.Get(); m_izanagi = Movement.Get().gameObject; m_izanami = Nami.Get(); }