コード例 #1
0
    private void ShowMissionWithTankerDescriptionPopUp(MissionModel model)
    {
        mUIMissionScrollListParent.EnableTouchControl = false;
        UIMissionWithTankerDescriptionPopUp component = Util.Instantiate(mPrefab_UIMissionWithTankerDescriptionPopUp.gameObject, mModalCamera.gameObject).GetComponent <UIMissionWithTankerDescriptionPopUp>();

        mModalCamera.Show();
        component.Initialize(model);
        component.SetOnUIMissionWithTankerDescriptionPopUpAction(UIMissionWithTankerDescriptionPopUpAction);
        component.Show();
        ChangeFocusKeyController(component.GetKeyController());
    }
コード例 #2
0
 private void OnDestroy()
 {
     mMissionManager            = null;
     mFocusKeyController        = null;
     ConfirmPopUp               = null;
     mUIMissionScrollListParent = null;
     mPrefab_UIMissionWithTankerDescriptionPopUp = null;
     mPrefab_UIMissionWithTankerConfirmPopUp     = null;
     mPrefab_UIMissionStateChangedCutIn          = null;
     mModalCamera     = null;
     mUIMissionHeader = null;
 }
コード例 #3
0
    private void UIMissionWithTankerDescriptionPopUpAction(UIMissionWithTankerDescriptionPopUp.ActionType actionType, UIMissionWithTankerDescriptionPopUp calledObject)
    {
        SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
        switch (actionType)
        {
        case UIMissionWithTankerDescriptionPopUp.ActionType.Shown:
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
            TweenAlpha.Begin(ConfirmPopUp.gameObject, 0.2f, 0f);
            break;

        case UIMissionWithTankerDescriptionPopUp.ActionType.Hiden:
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
            KeyControl keyController = ConfirmPopUp.GetKeyController();
            ChangeFocusKeyController(keyController);
            UnityEngine.Object.Destroy(calledObject.gameObject);
            mModalCamera.Close();
            TweenAlpha.Begin(ConfirmPopUp.gameObject, 0f, 1f);
            break;
        }
        }
    }