Beispiel #1
0
 void Update()
 {
     if (database != null)
     {
         scheduler = database.GetComponent <StateChangeScheduler>();
     }
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Insert))
     {
         available = false;
         scheduler = meshnet.database.gameObject.GetComponent <StateChangeScheduler>();
         if (scheduler == null)
         {
             Debug.LogError("Couldn't find scheduler");
             return;
         }
         StartCoroutine(SpawnCapsule());
     }
 }