void Start() { tool = ToolMGR.GetInstance().gameObject; EvidenceManager.GetInstance().AddObjectEvent += ShowDescribe; EvidenceManager.GetInstance().AddWordEvent += ShowDescribe; evidences = EvidenceManager.GetInstance().allEvidences; }
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(); }
private void OnCollisionEnter2D(Collision2D other) { if (other.gameObject.tag.Equals("Player")) { if (!ToolMGR.GetInstance().GetTool().Equals("新酒")) { Talk("酒拿到了吗"); } else { coll.enabled = false; Talk("结束教程"); } } }
/// <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); }
void Start() { player = PlayerControl.GetInstance().gameObject.GetComponent <Player>(); evidenceManager = EvidenceManager.GetInstance(); tool = ToolMGR.GetInstance().gameObject; }
public void SwitchSelection() { ToolMGR.GetInstance().ChangeTool(evidence.GetEvidenceName()); }