Esempio n. 1
0
    public override void Update()
    {
        base.Update();

        updateAcc.x = Mathf.Abs(WatchManager.Instance.Acc.x);
        updateAcc.y = Mathf.Abs(WatchManager.Instance.Acc.y);
        updateAcc.z = Mathf.Abs(WatchManager.Instance.Acc.z);

        for (int i = 0; i < motionData.Length; i++)
        {
            if (isCalc)
            {
                if (CalcWithSetMotion(motionData[i]))
                {
                    return;
                }
            }
            else
            {
                saveAcc     = updateAcc;
                MotionSkill = MotionSkillType.NONE;
                isCalc      = true;
            }
        }
    }
Esempio n. 2
0
    /// <summary>
    /// モーションが成功した時に呼ばれる。
    /// </summary>
    void OnComplated(MotionSkillType type)
    {
        if (type == MotionSkillType.NONE)
        {
            return;
        }

        MotionSkill = type;

        if (SequenceManager.Instance.IsNowGameScene)
        {
            attackSkill.OnMotionComplated();
        }

        Debugger.Log("【モーション成功】");
        Debugger.Log(MotionSkill.ToString());
    }
Esempio n. 3
0
    public override void Awake()
    {
        base.Awake();

        MotionSkill = MotionSkillType.NONE;
    }