// Use this for initialization void Start() { //Initializes the players RigidBody, Animator and EnemyScript rb2d = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); enemyScript = enemy.GetComponent <PlayerOneBehaviour>(); }
// Use this for initialization void Start() { P1Script = PlayerOne.GetComponent <PlayerOneBehaviour>(); P2Script = PlayerTwo.GetComponent <PlayerTwoBehaviour>(); }