Beispiel #1
0
 void Awake()
 {
     MessageKit.addObserver(_enableEvent, EnableCanvas);
     MessageKit.addObserver(_disableEvent, DisableCanvas);
 }
Beispiel #2
0
 public void OnPoolSpawned()
 {
     MessageKit <Transform> .addObserver(Messages.CameraFocusChanged, Follow);
 }
        public FirstPersonCameraSystem()
        {
            MessageKit <float> .addObserver(Messages.PlayerViewRotated, ChangeRotation);

            MessageKit.addObserver(Messages.PlayerTeleported, ForceMoveUpdate);
        }
 void Awake()
 {
     MessageKit <Transform> .addObserver(Messages.CameraFocusChanged, SetTarget);
 }
 public PhysicsMoverSystem()
 {
     _rbDel = CheckPaused;
     MessageKit.addObserver(Messages.PauseChanged, CheckPause);
 }