private void OnEvent(MonoBehaviour behaviour, OWML.Common.Events ev) { if (behaviour.GetType() == typeof(PlayerResources) && ev == OWML.Common.Events.AfterStart) { Init(); } }
private void OnEvent(MonoBehaviour behaviour, OWML.Common.Events ev) { if (behaviour.GetType() == typeof(ShipDamageController) && ev == OWML.Common.Events.AfterAwake) { behaviour.SetValue("_exploded", true); } }
private void OnEvent(MonoBehaviour behaviour, OWML.Common.Events ev) { if (behaviour is ShipDamageController shipDamageController && ev == OWML.Common.Events.AfterAwake) { shipDamageController.SetValue("_exploded", true); } }
private static void OnEvent(MonoBehaviour behaviour, OWML.Common.Events ev) { if (behaviour is PlayerAnimController playerAnimController && ev == OWML.Common.Events.BeforeStart && SuitedAnimController == null) { SuitedAnimController = playerAnimController.GetValue <RuntimeAnimatorController>("_baseAnimController"); } }