public static float FromModule(KMNeedyModule module) { return(module.GetComponent("BombComponent").GetValue <object>("Bomb").CallMethod <object>("GetTimer").GetValue <float>("GetRate")); }
public static void FromModule(KMNeedyModule module, float time) { module.GetComponent("BombComponent").GetValue <object>("Bomb").CallMethod <object>("GetTimer").SetValue("TimeRemaining", time); }
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); }; }