public void UpdateDisp() { int at = _model.GetDispAT(); if (at != _ATPrev) { UpdateCharAnim(at); List <MiroV1WeaponBase> wps = _model.GetAttackingWeapons(); HighlightAT(wps); float lrWd = _StrokeWidthOnAT.Evaluate(at); foreach (LineRenderer lr in _StrokeLineRenderers) { lr.widthMultiplier = lrWd; } float scl = _CharScaleOnAT.Evaluate(at); _CharTF.localScale = new Vector3(scl, scl, 1.0f); float escl = _EdgeHaloScaleOnAT.Evaluate(at); _EdgeObj.transform.localScale = new Vector3(escl, escl, 1.0f); _ATPrev = at; } SpriteColorCtrl scolorCtrl = _EdgeObj.GetComponent <SpriteColorCtrl> (); if (at == 0) { scolorCtrl._id = 0; _animCtrl.gameObject.SetActive(false); } else { scolorCtrl._id = 1; _animCtrl.gameObject.SetActive(true); } SetLineRenderersColor(); SetKeepHighlighting(_KeepHighlighting); }
override public void UpdateAnyway() { for (int i = 0; i < 9; i++) { Animator anim = _Anims[i]; SpriteColorCtrl crCtrl = _crCtrls [i]; if (i < _EN) { anim.SetInteger("EN", 2); crCtrl._id = 4; } else if (i >= _EN && i < _ENMax) { anim.SetInteger("EN", 1); crCtrl._id = 3; } else { anim.SetInteger("EN", 0); crCtrl._id = 0; } } }