Example #1
0
    // Use this for initialization
    void Start()
    {
        // player = GameObject.FindGameObjectWithTag("Player");
        // player2 = GameObject.FindGameObjectWithTag("Player2");

        playerController  = PlayerController.Instance();
        player2Controller = Player2Controller.Instance();
        // playerRb = player.GetComponent<Rigidbody2D>();
        // player2Rb = player2.GetComponent<Rigidbody2D>();
    }
Example #2
0
 private void Awake()
 {
     player2Controller = Player2Controller.Instance();
     rb = GetComponent <Rigidbody2D>();
 }