public void updateStatB(StatB stats) { if (statBDisp == null) { Debug.LogError("StatB display not set"); } else { statBDisp.setValues(stats.heavy, stats.smooth, stats.durable, stats.mutative, stats.stiff); } }
void prepareToMove(MiteAttr attr) { statA = attr.statA; statB = attr.statB; rb = GetComponent <Rigidbody2D>(); rb.mass = W * (statB.heavy / statB.maxHeavy); rb.angularDrag = AWD * (statB.heavy / statB.maxHeavy); curStamina = attr.curStamina; mySpeedDelta = calcFlatSpeedDelta(0); myMaxSpeed = calcMaxSpeed(); Debug.Log(gameObject.name + " speedDelta:" + mySpeedDelta); }