Esempio n. 1
0
 void Update()
 {
     if (myobj.GameStart())
     {
         transform.rotation = Quaternion.Euler(new Vector3(0, 0, 0));
         if (playerIsLive && inField(playerPos))
         {
             catchPlayer();
         }
         else
         {
             if (isCatching)
             {
                 getscore();
             }
             patrolmove();
         }
     }
 }