- Home /
 
              This question was 
             closed Feb 02, 2014 at 09:36 AM by 
             Benproductions1 for the following reason: 
             
 
            Question is off-topic or not relevant
 
               Question by 
               galaboy · Feb 02, 2014 at 09:36 AM · 
                scriptableobjecttime.time  
              
 
              increamenting speed periodically
am doing a space shooter game where i have to increment the speed of the enemy every 20seconds. need help.
               Comment
              
 
               
              thanks for the help i figured out how to do it. below is the script.
 using UnityEngine;
 using System.Collections;
 
 public class enemy_script : $$anonymous$$onoBehaviour {
 
     public float enemySpeed = 5;
 
 void Start () {
         InvokeRepeating("gameTimer",60,60);
     }
 
 void gameTimer()
     {
         print(enemySpeed);
         enemySpeed += 2;
     }