Ejemplo n.º 1
0
    private void Awake() // start
    {
        registerSelfToMediator();
        noOneSeated   = new NoOneSeated(this);
        patronSeated  = new PatronSeated(this);
        patronOrdered = new PatronOrdered(this);
        patronReturningFromAdventure = new PatronReturningFromAdventure(this);


        isTimerPaused = false;
        this.GetComponent <BoxCollider2D>().enabled = false;

        patronWantsIcons.initIconsToDisplay();
        patronWantsIcons.initFadeTime(timeToFadeInOut);

        patronsMug.initMug();

        patronArt = this.GetComponent <SpriteRenderer>();
        assignObjectToFade(patronArt);
        setFadeTime(timeToFadeInOut);
        seatState = noOneSeated;
    }
Ejemplo n.º 2
0
 public void setSeatState(ISeatStates newSeatState)
 {
     seatState = newSeatState;
 }