Example #1
0
    void onTouchEvent(string obj)
    {
        Buy.name = items.Item.ToString();

        if (obj == Buy.name)
        {
            if (TouchController.collider.tag != "Utilits")
            {
                CreateController.shareCreate().createBuyLevelUp(this);
            }
            else
            {
                CreateController.shareCreate().createBuyUtilits(this);
            }
        }
    }
Example #2
0
 void goToSceneStore()
 {
     CreateController.shareCreate().createScene(this.nameScene);
     Destroy(this.gameObject);
 }
Example #3
0
 public static void noMoney()
 {
     CreateController.shareCreate().createWarningCoin();
 }