private bool CheckLocalPlayer(Collider other) { if (other.tag != "Player") { return(false); } //we are not the local player if (other.GetComponent <Player>() != GameManager.Instance.LocalPlayer) { return(false); } playerCover = GameManager.Instance.LocalPlayer.GetComponent <PlayerCover>(); return(true); }
private bool IsLocalPlayer(Collider other) { if (other.tag != "Player") { return(false); } if (other.GetComponent <Player> () != GameManager.Instance.LocalPlayer) { return(false); } playerCover = GameManager.Instance.LocalPlayer.GetComponent <PlayerCover>(); return(true); }