float GetMassOnPlatform(GameObject t) { PulleyPlatform pulleyPlatform = t.GetComponent <PulleyPlatform>(); float mass = pulleyPlatform.massOnPlatform; return((pulleyPlatform.isPositive) ? mass : -mass); }
void setMassOfSystemOnPlatform(GameObject t) { PulleyPlatform pulleyPlatform = t.GetComponent <PulleyPlatform>(); pulleyPlatform.massToApply = totalMassOnSystem; }