Пример #1
0
 void Start()
 {
     tool = ToolMGR.GetInstance().gameObject;
     EvidenceManager.GetInstance().AddObjectEvent += ShowDescribe;
     EvidenceManager.GetInstance().AddWordEvent   += ShowDescribe;
     evidences = EvidenceManager.GetInstance().allEvidences;
 }
Пример #2
0
 protected virtual void Start()
 {
     gameManager = GameManager.GetInstance();
     tool        = ToolMGR.GetInstance().gameObject;
     talker      = Talker.GetInstance();
     if (contents.Length == 0)
     {
         return;
     }
     foreach (DialogContent con in contents)
     {
         topics.Add(con.topic, con);
     }
     Subscribe();
 }
Пример #3
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag.Equals("Player"))
     {
         if (!ToolMGR.GetInstance().GetTool().Equals("新酒"))
         {
             Talk("酒拿到了吗");
         }
         else
         {
             coll.enabled = false;
             Talk("结束教程");
         }
     }
 }
Пример #4
0
    /// <summary>
    /// 与证据对话
    /// </summary>
    public void TalkWithTool()
    {
        ToolMGR toolMGR = ToolMGR.GetInstance();
        string  tool    = toolMGR.GetTool();

        if (toolMGR.gameObject.activeSelf && toolTopic.ContainsKey(tool))
        {
            Talk(toolTopic[tool]);
        }
        else
        {
            Talk(uselessTool);
        }
        ChangeTalkableStatus(false);
    }
Пример #5
0
 void Start()
 {
     player          = PlayerControl.GetInstance().gameObject.GetComponent <Player>();
     evidenceManager = EvidenceManager.GetInstance();
     tool            = ToolMGR.GetInstance().gameObject;
 }
Пример #6
0
 public void SwitchSelection()
 {
     ToolMGR.GetInstance().ChangeTool(evidence.GetEvidenceName());
 }