Exemplo n.º 1
0
    public void Process(int tag)
    {
        int money = 0;
        int well  = 0;

        switch (tag)
        {
        case 0:
            money = 100;
            well  = 5;
            break;

        case 1:
            money = 200;
            well  = 7;
            break;

        case 2:
            money = 1000;
            well  = 15;
            break;
        }

        if (GameManager.AddMoney(-money))
        {
            Parameters.get(ParamsKind.WELL).Value += well;
            DayClass.IncHour();
        }
    }
Exemplo n.º 2
0
    private void OnMouseUp()
    {
        if (EventSystem.current.IsPointerOverGameObject())
        {
            return;
        }


        if (VisitingIQ > Parameters.get(ParamsKind.IQ).Value)
        {
            GUImain.ShowMessage("ZINĀŠANAS!", "Tavs zināšanu līmenis ir pārāk zems! \nNepieciešamais IQ ir " + VisitingIQ);
            return;
        }

        if (!CanVisit(true))
        {
            ShowCloseDialog();
            return;
        }

        if (!(this is MapBuilding))
        {
            DayClass.IncHour();
        }

        GameManager.SelectedBuilding = this;
        Quest.Execute(this);
        SelectBuilding();
    }
Exemplo n.º 3
0
 public void GotoWork()
 {
     PlayerStatus     = PlayerStatus.NONE;
     SelectedBuilding = CurrentWork;
     DayClass.IncHour();
 }