Ejemplo n.º 1
0
 public void CowsEnded(CowsManager controller)
 {
     if (panelWin.gameObject.activeSelf == false)
     {
         panelLose.gameObject.SetActive(true);
     }
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance         = this;
            agentChooser     = FindObjectOfType <AgentChooser>();
            pointsManager    = FindObjectOfType <PointsManager>();
            cowsManager      = FindObjectOfType <CowsManager>();
            agentsInfoGetter = FindObjectOfType <AgentsInfoGetter>();
            aliensInfoGetter = FindObjectOfType <AliensInfoGetter>();
            charactersInfo   = FindObjectOfType <CharactersInfo>();
        }

        else
        {
            Destroy(gameObject);
        }
    }