示例#1
0
    public void spawnNewEnv()
    {
        GameObject envObject = new GameObject();
        EnvVar     newenv    = envObject.AddComponent <EnvVar>();

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