Exemplo n.º 1
0
 protected override void Open(EscapeGame game)
 {
     m_Closed = false;
     Debug.Log("Box is opened.");
     game.Putback();
     game.Take(m_Content);
 }
Exemplo n.º 2
0
 // 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();
     }
 }
Exemplo n.º 3
0
 public override void Interact(EscapeGame game)
 {
     game.Putback();
     game.Take(m_Content);
 }