void Start() { battleEngine = BattleEngine.Instance; _gameCamera = GameCamera.current; EventManager.Instance.RegisterEvent <Snaker, object>("OnSnakerDead", OnSnakerDead); }
protected override void OnDestroy() { battleEngine = null; ResetGameCamera(); _gameCamera = null; EventManager.Instance.UnregisterEvent <Snaker, object>("OnSnakerDead", OnSnakerDead); base.OnDestroy(); }