private void ExecuteAction(IEntityModel model, EActionCondition action) { switch (action) { case EActionCondition.COLLECT: Debug.Log("COLLECT"); model.Collect(); break; case EActionCondition.SCAN: Debug.Log("SCAN"); model.Scan(); break; case EActionCondition.FIND_NEW_PATH: model.MoveTo(_currentPath[0]); Debug.Log("FIND_NEW_PATH"); break; case EActionCondition.MOVE_FORWARD: Debug.Log("MOVE_FORWARD"); model.MoveForward(); break; case EActionCondition.BACK_TO_BASE: Debug.Log("BACK_TO_BASE"); break; default: break; } }