コード例 #1
0
    void Awake()
    {
        instance = this;
        this._layerMaskBaseItemCollider = LayerMask.GetMask("BaseItemCollider");
        this._layerMaskGroundCollider   = LayerMask.GetMask("GroundCollider");

        CEventTouchDistrubtion.RegisterDownEvent(onBackInputDown);
        CEventTouchDistrubtion.RegisterUpEvent(onBackInputUp);
    }
コード例 #2
0
 private void OnDestroy()
 {
     instance = null;
     CEventTouchDistrubtion.UnRegisterUpEvent(onBackInputDown);
     CEventTouchDistrubtion.UnRegisterUpEvent(onBackInputUp);
 }