// 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++; }
public void Start() { if (instance == null) { instance = this; } else { Destroy(this); } }