void MecanismStoping(Mecanism myMec) { if (myMec == mecanism) { turning = false; an.SetBool("Turn", turning); ActiveNextGearsF(turning, this); } }
void MecanismWork(Mecanism myMec) { if (myMec == mecanism) { turning = true; an.SetBool("Turn", turning); ActiveNextGearsF(turning, this); } }