Exemplo n.º 1
0
 void Update()
 {
     if (!gameCtrl.isProgressed || sEnd.isGameClear || sEnd.isGameOver || poseCtrl.isPose || !cc.isStart)
     {
         pac.EndSwim();
         pac.EndWalk();
         rb.velocity = Vector3.zero;
         if (sEnd.isGameClear)
         {
             pac.Goal();
         }
         if (sEnd.isGameOver)
         {
             pac.Drown();
         }
         return;
     }
     CheckInWater();
     Move();
     position = transform.position;
 }