void Awake() { instance = this; this._layerMaskBaseItemCollider = LayerMask.GetMask("BaseItemCollider"); this._layerMaskGroundCollider = LayerMask.GetMask("GroundCollider"); CEventTouchDistrubtion.RegisterDownEvent(onBackInputDown); CEventTouchDistrubtion.RegisterUpEvent(onBackInputUp); }
private void OnDestroy() { instance = null; CEventTouchDistrubtion.UnRegisterUpEvent(onBackInputDown); CEventTouchDistrubtion.UnRegisterUpEvent(onBackInputUp); }