Esempio n. 1
0
    public void DismissRodent()
    {
        //Debug.Log("Dismiss rodent button pressed");

        //Unassign from its assigned structure
        Employee _Job = _Rodent.GetJob();

        if (_Job)
        {
            _Job.Dismiss(_Rodent);
        }
        //remove from player rodent list (in gamemanager)
        GameManager.Instance.RemovePlayerRodent(_Rodent);
        //make rodent available again (no hat)
        _Rodent.setTeam(0);
        _Rodent.ShowDismissMenu(false);

        showMenu(false, null);
    }