Exemple #1
0
        CloudLayer CreateCloudLayer(string name, int layerIndex)
        {
            CloudLayer cl = Utils.CreateGameObject(null, name, CloudGroup).AddComponent <CloudLayer>();

            cl.Executor   = this;
            cl.LayerIndex = layerIndex;
            return(cl);
        }
Exemple #2
0
 void CreateCloud()
 {
     CloudGroup     = Utils.CreateGameObject(null, "Cloud Layers", WeatherGroup).transform;
     SunCloudLayer  = CreateCloudLayer("Sun Cloud", 0);
     RainCloudLayer = CreateCloudLayer("Rain Cloud", -10);
 }