private void Awake() { agent = GetComponent <NavMeshAgent>(); agent.updateRotation = false; agent.updateUpAxis = false; GameEvent.AddEvent(UnitsUpdate, Method.Update); }
private void OnEnable() { currentState = allStatesOrdered[0]; currentStateIndex = 0; collidersInLocation.AddEvent(SetStateToMoveObject); collidersNotInLocation.AddEvent(SetStateToDropObject); }
public void MouseDown() { if (!GameManager.Instatate.IsBuild) { if (!UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject()) { isDraw = true; GameEvent.AddEvent(SelectionViewUpdate, Method.Update); RaycastHit hit; if (Physics.Raycast(camera.ScreenPointToRay(Input.mousePosition), out hit)) { WPoint1 = hit.point; Point1 = camera.WorldToScreenPoint(WPoint1); } } } }
public IEnumerator Enter() { yield return(null); SDKMain.instance.initBugly(); GameEvent.AddEvent(GameEvent.EVENT_START_1); if (!Cymoe.disableSplash) { while (SDKMain.instance.CallIsSplash() == 1) { yield return(this.waitOrSkip()); } } SDKMain.instance.CallcloseSplash(); GameEvent.AddEvent(GameEvent.EVENT_SPLASH_1); yield break; }
public void AddEvent(Enum type, GameEventHandler handler, bool isUseOnce = false, bool isFirst = false) { mInternalEvent.AddEvent(type, handler, isUseOnce); }