コード例 #1
0
ファイル: TimerRate.cs プロジェクト: eXish/Training-Text
 public static float FromModule(KMNeedyModule module)
 {
     return(module.GetComponent("BombComponent").GetValue <object>("Bomb").CallMethod <object>("GetTimer").GetValue <float>("GetRate"));
 }
コード例 #2
0
 public static void FromModule(KMNeedyModule module, float time)
 {
     module.GetComponent("BombComponent").GetValue <object>("Bomb").CallMethod <object>("GetTimer").SetValue("TimeRemaining", time);
 }
コード例 #3
0
 void Awake()
 {
     GetComponent <KMNeedyModule>().OnNeedyActivation   += OnNeedyActivation;
     GetComponent <KMNeedyModule>().OnNeedyDeactivation += OnNeedyDeactivation;
     GetComponent <KMNeedyModule>().OnTimerExpired      += OnTimerExpired;
     Button.OnInteract += delegate() { Needy.GetComponent <KMAudio>().PlayGameSoundAtTransform(KMSoundOverride.SoundEffect.ButtonPress, transform); Button.AddInteractionPunch(); Queue.Enqueue(CycleFlowers()); return(false); };
 }