Наследование: MonoBehaviour
Пример #1
0
 internal void Start()
 {
     this.lightning = AddLightning(this.name, true, CasterX, CasterY, TargetX, TargetY);
     MoveLightningEx(this.lightning, true, CasterX, CasterY, this.casterZ + CasterHeightOffset, TargetX, TargetY, this.casterZ + TargetHeightOffset);
     SetLightningColor(this.lightning, Red, Green, Blue, Alpha);
     this.transparencyRate = FadeDuration > 0 ? Alpha / FadeDuration * PeriodicEvents.SYSTEM_INTERVAL : Alpha;
     this.age = 0;
 }
Пример #2
0
 public static boolean SaveLightningHandle(hashtable table, integer parentKey, integer childKey, lightning whichLightning)
 {
     table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichLightning);
     return(true);
 }