protected override void Open(EscapeGame game) { m_Closed = false; Debug.Log("Box is opened."); game.Putback(); game.Take(m_Content); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.N)) { m_Game.SelectNext(); } else if (Input.GetKeyDown(KeyCode.Space)) { m_Game.Inspect(); } else if (Input.GetKeyDown(KeyCode.Return)) { m_Game.Interact(); } else if (Input.GetKeyDown(KeyCode.R)) { m_Game.Putback(); } }
public override void Interact(EscapeGame game) { game.Putback(); game.Take(m_Content); }