Пример #1
0
 void Awake()
 {
     //Auto load if not set
     if (UTWC == null)
     {
         GameObject WaterC = GameObject.Find("WaterC");
         if (WaterC != null)
         {
             UTWC = WaterC.GetComponent <UltimateToonWaterC>();
         }
     }
     if (UTW == null)
     {
         GameObject Water = GameObject.Find("Water");
         if (Water != null)
         {
             UTW = Water.GetComponent <UltimateToonWater>();
         }
     }
     if (floaterParticles == null)
     {
         GameObject FloaterP = GameObject.Find("FloaterParticles");
         if (FloaterP != null)
         {
             floaterParticles = FloaterP.GetComponent <FloaterParticles>();
         }
     }
 }
Пример #2
0
 void Awake()
 {
     //Auto load if not set
     if (UTWC == null) {
         GameObject WaterC = GameObject.Find("WaterC");
         if (WaterC != null) {
             UTWC = WaterC.GetComponent<UltimateToonWaterC>();
         }
     }
     if (UTW == null) {
         GameObject Water = GameObject.Find("Water");
         if (Water != null) {
             UTW = Water.GetComponent<UltimateToonWater>();
         }
     }
     if (floaterParticles == null) {
         GameObject FloaterP = GameObject.Find("FloaterParticles");
         if (FloaterP != null) {
             floaterParticles = FloaterP.GetComponent<FloaterParticles>();
         }
     }
 }