Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (maxHP * .4 < health)
     {
         cycle += Time.deltaTime;
         if (cycle >= shift)
         {
             behavior.Teleport();
             behavior.Missile();
             cycle = 0f;
             if (maxHP * .75 > health)
             {
                 shift *= .5f;
             }
         }
     }
     else
     {
     }
     if (health == 41)
     {
         behavior.Missile();
     }
 }