Exemple #1
0
 // Use this for initialization
 void Start()
 {
     //REMOVE BEFORE INTENSIVE TESTING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     //Also turn vsync on, this is used so I can see the delay scripts create
     Application.targetFrameRate = 65;
     handlerBuilding             = player.GetComponent <HandlerBuilding>();
     playermovement = player.GetComponent <PlayerMovement>();
 }
 // Use this for initialization
 void Start()
 {
     //REMOVE BEFORE INTENSIVE TESTING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     //Also turn vsync on, this is used so I can see the delay scripts create
     Application.targetFrameRate = 65;
     handlerBuilding = player.GetComponent<HandlerBuilding>();
     playermovement = player.GetComponent<PlayerMovement>();
 }