public override bool Update() { if (!battleChat.IsChatting && custom_inputs.Instance.GetButtonDown(editorToolScript.inputKey) && IsEnable()) { active = true; phase = PHASE.NONE; start = new Vector3(10000f, 10000f, 10000f); end = new Vector3(10000f, 10000f, 10000f); return(true); } if (!battleChat.IsChatting && custom_inputs.Instance.GetButtonDown(editorToolScript.inputKey) && !IsEnable()) { GameObject gameObject = GameObject.Find("Me"); if (null != gameObject) { LocalController component = gameObject.GetComponent <LocalController>(); if (null != component) { component.addStatusMsg(StringMgr.Instance.Get("ITEM_USED_ALL")); } } return(false); } return(false); }