Ejemplo n.º 1
0
    /**************************
     * Service Methods
     *************************/

    /// <summary>
    /// Initialize controller.
    /// </summary>
    public void Awake()
    {
        // Prepare reference to the GameManager instance.
        GameManager.Instance.DoNothing();

        // Prepare the canvas revealer.
        this.canvasRevealer = this.canvasRevealer ?? new CanvasRevealer();
    }
Ejemplo n.º 2
0
    /**************************
     * MonoBehaviour Methods
     *************************/

    /// <summary>
    /// Initialize the CanvasRevealer.
    /// </summary>
    public override void Awake()
    {
        base.Awake();
        this.canvasRevealer = this.canvasRevealer ?? new CanvasRevealer();

        if (!Instructions.Instance)
        {
            Instructions.Instance = this;
            this.UpdateText();
            this.Hide();
        }
        else
        {
            Destroy(this);
        }
    }
Ejemplo n.º 3
0
 /// <summary>
 /// Special case HUDShowButtonState.
 /// </summary>
 /// <param name="engine">State machine.</param>
 /// <param name="buttons">Pause button.</param>
 public HUDPausedState(StateMachine engine, GameObject canvas) : base(engine)
 {
     this.canvasRevealer = new CanvasRevealer(canvas);
 }