public Lifetime.Definition Keep() { var def = Lifetime.Define(Lifetime.Eternal); Keep(def.Lifetime); return(def); }
private void Awake() { _lifetime = Lifetime.Define(Lifetime.Eternal); _onUpdate = new Signal(_lifetime.Lifetime); _onLateUpdate = new Signal(_lifetime.Lifetime); _onFixedUpdate = new Signal(_lifetime.Lifetime); _onAwake = new Signal(_lifetime.Lifetime); _onEnable = new Signal(_lifetime.Lifetime); _onDisable = new Signal(_lifetime.Lifetime); _onDestroy = new Signal(_lifetime.Lifetime); _onStart = new Signal(_lifetime.Lifetime); _onDestroy = new Signal(_lifetime.Lifetime); _onAwake.Fire(); }