Exemple #1
0
    // The multiwave instance gets reference to both players
    public void GetReferences()
    {
        InputManage x = GameObject.Find("InputManager").GetComponent <InputManage>();

        p1 = x.leftPlayer;
        p2 = x.rightPlayer;
        r++;
    }
Exemple #2
0
 public void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }