Ejemplo n.º 1
0
 public override void enter()
 {
     gameOverListener = GameOverListener.Instance;
     gameOverListener.scoreBoardPanel.SetActive(true);
     //imageToUserMap.kinectImg = ScoreBoardController.Instance.kinectImg;
     //base.enter();
 }
 public override void enter()
 {
     GestureListener.ifDetectGesture = true;
     imageToUserMap   = GameObject.FindWithTag("Canvas").GetComponent <ImageToUserMap> ();
     gameOverListener = GameOverListener.Instance;
     KinectManager.Instance.enabled = true;
     initialize();
 }
 void Start()
 {
     instance     = this;
     stateMachine = gameObject.GetComponent <StateMachine> ();
     stateMachine.currentState = GameOverMenuState.Instance;
     stateMachine.currentState.enter();
     stateMachine.previousState = null;
 }
Ejemplo n.º 4
0
        public override void Dispatch(EventListener listener)
        {
            if (!(listener is GameOverListener))
            {
                return;
            }

            GameOverListener l = (listener as GameOverListener);

            l.OnRespawnPlayer();
        }
Ejemplo n.º 5
0
 public override void enter()
 {
     gameOverListener = GameOverListener.Instance;
     gameOverListener.continueAni.enabled = true;
 }
Ejemplo n.º 6
0
 public override void enter()
 {
     gameOverListener = GameOverListener.Instance;
     gameOverListener.returnAni.enabled = true;
 }