Exemplo n.º 1
0
 public override void OnExitAction(CharController user)
 {
     if (hasAssignedSystem && workingChar == user)
     {
         workingChar = null;
         repairable.StopRepairing();
         shipSystem.OnExitAction(user);
     }
 }
Exemplo n.º 2
0
 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());
     }
 }