Exemplo n.º 1
0
 // 0 for team 1; 1 for team 2 because indexing
 // Start is called before the first frame update
 void Start()
 {
     myCol     = this.GetComponent <Collider2D>();
     resPool   = GetComponent <ResourceBag>();
     baseStats = GetComponent <PlayerStats>();
     TeleportTile[] tels = GetComponentsInChildren <TeleportTile>();
     mnm          = GameObject.Find("NetworkManager").GetComponent <MonumentalNetworkManager>();
     gameSettings = GameObject.FindObjectOfType <GameSettings>();
     uiControl    = GameObject.FindObjectOfType <UI_Control>();
     lastPurchase = Time.time;
     for (int i = 0; i < tels.Length; i++)
     {
         tels[i].teamIndex = teamIndex;
     }
     if (isServer)
     {
         upgrade1level = 1;
         upgrade2level = 1;
         upgrade3level = 1;
         upgrade4level = 1;
         upgrade5level = 1;
         upgrade6level = 1;
     }
     monuments = GameObject.FindObjectOfType <Monuments>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     mnm = GameObject.Find("NetworkManager").GetComponent <MonumentalNetworkManager>();
     clear();
 }
Exemplo n.º 3
0
 public void SetNetManager(MonumentalNetworkManager m)
 {
     mnm = m;
 }