예제 #1
0
    private void Start()
    {
        turn = 1;
        currentTurnOnPool = -1;

        Turn_Manager.EventOnPlayerTurn += ChangeTurnOnPool;

        phrasesPool = GameObject.FindObjectOfType <Phrase_Pool>();
        if (phrasesPool == null)
        {
            Debug.LogError("Al menos un GameObject debe tener el script Phase_Pool");
        }

        AddPoolsToUltraPool(phrasesPool.phrasesPositive);
        AddPoolsToUltraPool(phrasesPool.phrasesNegative);
        AddPoolsToUltraPool(phrasesPool.phrasesAmbiguous);

        //ChangeTurnOnPool(1); //Cambio de turno temporal mientras las cosas funcionan equs
    }
예제 #2
0
 private void OnEnable()
 {
     phrasePool    = (Phrase_Pool)target;
     editingActive = new bool[3];
 }