Exemplo n.º 1
0
 public void act()
 {
     if (behave != null && equipped)
     {
         //behave.startPos = player.carScript.transform.position + Vector3.up;
         behave.startPos = new Vector3(0, 3, 0);
         behave.act();
     }
 }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (!hasBall)
     {
         noBallTimer++;
         if (noBallTimer > spawnTime)
         {
             spawn();
             noBallTimer = 0;
         }
     }
     else
     {
         pBallScr.act();
     }
 }