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; } } }
/// <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()); }
public override void Awake() { base.Awake(); MotionSkill = MotionSkillType.NONE; }