示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (GM.Active)
     {
         cooldown -= Time.deltaTime;
         if (cooldown <= 0)
         {
             Granade.Go(transform.position, target, 4, 2, 2, 3);
             cooldown = Cooldown;
         }
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (GM.Active)
     {
         cooldown -= Time.deltaTime;
         if (cooldown <= 0 && IsReady)
         {
             Granade.Go(transform.position, target + Random.insideUnitCircle * spread, 5, ExplSize, damage, Suppression);
             cooldown = Cooldown;
         }
     }
 }