Exemplo n.º 1
0
 /// <summary>
 /// 初期化
 /// </summary>
 void StrengthInitialize()
 {
     strengthTiming_p = StrengthTiming.ProcessingStart;
     selectingClass_p = SelectingClass.Sexual;
     sexualType_p     = SexualType.Male;
     statusType_p     = StatusType.HP;
     canInputUsabale  = true;
     canSaving        = true;
     addStatus        = 0;
     SystemMgr.loadBackBoradUsabale = false;
 }
Exemplo n.º 2
0
    void Update()
    {
        switch (strengthTiming_p)
        {
        case StrengthTiming.ProcessingStart:
            strengthTiming_p = StrengthTiming.ProcessingNow;
            break;

        case StrengthTiming.ProcessingNow:
            if (canInputUsabale == true)
            {
                switch (selectingClass_p)
                {
                case SelectingClass.Sexual:
                    SelectingSexual();
                    break;

                case SelectingClass.Status:
                    SelectingStatus();
                    break;

                case SelectingClass.AddControl:
                    if (InputMgr.fire7 == true)
                    {
                        StrengthgCalculation();
                    }
                    break;
                }
            }
            else
            {
                StrengthTimeControl();
                ReturnInitilize();
            }
            if (canSaving == false)
            {
                canSaving = true;
            }
            InputType();
            TestText();
            break;

        case StrengthTiming.ProcessingEnd:
            if (canSaving == true)
            {
                SavingStrength();
                canSaving = false;
            }
            SystemMgr.sceneMoveUsabale     = true;
            SystemMgr.loadBackBoradUsabale = true;
            break;
        }
    }
Exemplo n.º 3
0
    /// <summary>
    /// 入力操作
    /// </summary>
    void InputType()
    {
        if (InputMgr.fire6 == true || Input.GetKeyDown(KeyCode.Space))
        {
            switch (selectingClass_p)
            {
            case SelectingClass.Sexual:
                if (sexualType_p != SexualType.ProcessingEnd)
                {
                    selectingClass_p = SelectingClass.Status;
                }
                else
                {
                    strengthTiming_p = StrengthTiming.ProcessingEnd;
                }
                break;

            case SelectingClass.Status:
                selectingClass_p = SelectingClass.AddControl;
                break;

            case SelectingClass.AddControl:
                if (canSaving == true)
                {
                    AddStatus();
                    SavingStrength();
                    ResetAddStatus();
                    canSaving = false;
                }
                selectingClass_p = SelectingClass.Sexual;
                break;
            }
        }
        else if (InputMgr.fire5 == true || Input.GetKeyDown(KeyCode.Escape))
        {
            switch (selectingClass_p)
            {
            case SelectingClass.Sexual:
                strengthTiming_p = StrengthTiming.ProcessingEnd;
                break;

            case SelectingClass.Status:
                selectingClass_p = SelectingClass.Sexual;
                break;

            case SelectingClass.AddControl:
                ResetAddStatus();
                selectingClass_p = SelectingClass.Status;
                break;
            }
        }
    }