Example #1
0
 public void SetNextScene(SceneID sceneID)
 {
     if (sceneID != _LoadedSceneID)
     {
         EventListener.Broadcast(MsgType.SceneBeginLoad, sceneID);
         _NextSceneID = sceneID;
     }
 }
Example #2
0
 void Update()
 {
     if (Input.GetMouseButton(0))
     {
         if (GetState() == BoxState.EmptyBox && StorageUI.CurrentGoodiesData != null)
         {
             if (StorageUI.CurrentGoodiesData.GoodiesID == 0)
             {
                 SetState(BoxState.FullBox);
                 EventListener.Broadcast(ObjectEvent.CallEat, gameObject);
             }
         }
     }
 }
Example #3
0
 void Update()
 {
     _GameLowFramed = _GameLowFramed || Application.runInBackground;
     if (_OldGameLowFramed != _GameLowFramed)
     {
         if (_GameLowFramed)
         {
             EventListener.Broadcast(MsgType.ApplicationPaused);
         }
         else
         {
             EventListener.Broadcast(MsgType.ApplicationActived);
         }
         _OldGameLowFramed = _GameLowFramed;
     }
 }
Example #4
0
 void SentEvent()
 {
     EventListener.Broadcast(ObjectEvent.SendSound);
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     EventListener.AddListener(ObjectEvent.SendSound, delegate() {
         EventListener.Broadcast(ObjectEvent.CallCat, gameObject);
     });
 }