예제 #1
0
        public void spawnNewEnv()
        {
            GameObject envObject = new GameObject();
            tEnvVar    newenv    = envObject.AddComponent <tEnvVar>();

            newenv.init(this);
            this.envVariables.Add(newenv);
        }
예제 #2
0
 public void createInitialEnv()
 {
     for (int i = 0; i < this.maxEnv; i++)
     {
         GameObject envObject = new GameObject();
         tEnvVar    newenv    = envObject.AddComponent <tEnvVar>();
         newenv.init(this);
         this.envVariables.Add(newenv);
     }
 }