void Start()
 {
     root             = gameObject;
     UpgradePanel     = transform.parent.GetChild(2).gameObject;
     PutBuildingPanel = transform.parent.GetChild(3).gameObject;
     objclass[0]      = new HealPlayer();
     objclass[1]      = new PowerUP();
     objclass[2]      = new BuildMoney();
     objclass[3]      = new BuildAutoGun();
     objclass[4]      = new BuildSlatingShot();
     objclass[5]      = new BuildStop();
     objclass[6]      = new BuildSlantingBomb();
     objclass[7]      = new BuildResponceShot();
 }
Exemple #2
0
 public void OnHealPlayer()
 {
     HealPlayer?.Invoke(this, new CollisionEventArgs(Position));
 }