void CmdAddPointUsed(SyncStructBool point, int team) { GameObject baseObj; if (team == 0) { baseObj = GameObject.Find("Base1Center"); } else { baseObj = GameObject.Find("Base2Center"); } baseObj.GetComponent <BaseBuildings>().AddPointUsed(point); }
public void CmdAddPointUsed(SyncStructBool point) { //pointUsed.Add(point); RpcAddPointUsed(point); }
public void RpcAddPointUsed(SyncStructBool point) { pointUsed.Add(point); }
public void AddPointUsed(SyncStructBool point) { pointUsed.Add(point); //CmdAddPointUsed(point); }