public override void OnExitAction(CharController user) { if (hasAssignedSystem && workingChar == user) { workingChar = null; repairable.StopRepairing(); shipSystem.OnExitAction(user); } }
public override void DoAction(CharController user) { workingChar = user.insideBehaviour; if (hasAssignedSystem && repairable.IsRepaired() && shipSystem.ReadyToUse()) { roomAnimator.SetBool(activeAnimName, true); shipSystem.DoAction(workingChar); } else { repairable.StartRepairing(workingChar.GetRepairSpeed()); } }