Exemple #1
0
    void OnMouseDown()
    {
        if (gameObject.name == "MasterTower")
        {
            return;
        }
        //if ( gameObject.GetComponent<TowerScript>().IsPlayerInThisTower() == false )
        //    return;

        instanceManager.SetTowerOfTheTime(this);
        upSys.transform.rotation = Camera.main.transform.rotation;
    }
Exemple #2
0
    public void ActiveShop()
    {
        InstancesManager     instancesManager = gameMaster.GetComponent <InstancesManager> ();
        UpgradeCanvasManager ucmScript        = instancesManager.GetTowerOfTheTime();

        if (ucmScript != null)
        {
            instancesManager.SetTowerOfTheTime(ucmScript);
        }
        ShopGObj.SetActive(true);
    }