Ejemplo n.º 1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     transform.position = new Vector3(0, 10000000, 0);
     pers.addFame(eventBonus[buildings[myNum]].y);
     pers.addMoney(eventBonus[buildings[myNum]].x);
     dissapearTimer = 0;
     spawnedIn      = false;
 }
Ejemplo n.º 2
0
    public void OnPointerClick(PointerEventData eventData)
    {
        if (coolTimer >= coolDown)
        {
            coolTimer = 0;
            pers.addFame(fame);
            pers.addMoney(money);
            money = pers.getMoney();

            pSyst = pers.pSyst;
            pSyst.transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition);
            pSyst.Play();
        }
    }