// Update is called once per frame void Update() { if (_beatingState != _beatingStatePrev) { UpdateBeatingState(); _beatingStatePrev = _beatingState; } if (_sp != _spPrev) { _PipeWdStartCtrl._SP = _sp; _EnCtrl._sp = _sp; _spPrev = _sp; } if (_modelAider == null) { Lyu.KeepOffset kepOffset = _AnchorA.GetComponent <Lyu.KeepOffset> (); _modelAider = kepOffset._Anchor.GetComponentInParent <MiroModelV1> (); } if (_keepSPAsEN && _modelAider != null) { //_model.Get if (_modelAider.IsAttacking()) { _sp = 0; } else { _sp = _modelAider._ENGenerator._EN; } } }
// Use this for initialization void Start() { _beatingStatePrev = _beatingState; _spPrev = _sp + 1; }
public void SetBeatingState_Full(BeatingState beatingState) { _beatingState = beatingState; }