Ejemplo n.º 1
0
 private void Awake()
 {
     agent = GetComponent <NavMeshAgent>();
     agent.updateRotation = false;
     agent.updateUpAxis   = false;
     GameEvent.AddEvent(UnitsUpdate, Method.Update);
 }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        currentState      = allStatesOrdered[0];
        currentStateIndex = 0;

        collidersInLocation.AddEvent(SetStateToMoveObject);
        collidersNotInLocation.AddEvent(SetStateToDropObject);
    }
Ejemplo n.º 3
0
 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);
             }
         }
     }
 }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 public void AddEvent(Enum type, GameEventHandler handler, bool isUseOnce = false, bool isFirst = false)
 {
     mInternalEvent.AddEvent(type, handler, isUseOnce);
 }