void Start() { // Get references to other components and game objects RigidBody2D = GetComponent <Rigidbody2D>(); Animator = GetComponent <Animator>(); punch = GetComponentInChildren <Punchattack>(); kick = GetComponentInChildren <Kickattack>(); // TODO: Get Animator Reference }
// Use this for initialization void Start() { punch = GetComponentInChildren <Punchattack>(); knives = GetComponentInChildren <ThrowKnives>(); followTarget = GetComponent <FollowTarget>(); }