Example #1
0
 // Use this for initialization
 void Start()
 {
     tc.AddEndOfTurnEffect(this.ChangeTurnNumber);
     p1.onPointsChanged += ChangePoints;
     p2.onPointsChanged += ChangePoints;
     am.onAPChanged     += ChangeAP;
 }
    /* We need to choose a tile, activate an option menu, register an option, tell the tile/manager
     * what to do, subtract the action points for this turn, register when the action points are zero,
     * and then tell the gm that the turn is over. */

    void Awake()
    {
        cam = Camera.main;
        OnTurnStart();
        tc = GameObject.FindGameObjectWithTag("TurnController").GetComponent <TurnController>();
        am = Object.FindObjectOfType <AudioManager>();
        tc.AddEndOfTurnEffect(OnTurnStart);
    }
Example #3
0
    void Start()
    {
        am = GetComponent <ActionManager>();

        // cam = Camera.main;
        turnController = GameObject.FindGameObjectWithTag("TurnController").GetComponent <TurnController>();
        turnController.AddEndOfTurnEffect(this.Decay);

        interactableTileCount = interactableTileHolder.childCount;
        InstantiateLevel(1);
        InstantiateLevel(2);
    }