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