/// <summary> /// 设置意图 /// </summary> /// <param name="passerIntent"></param> /// <param name="movePosition"></param> public void SetIntent(PasserIntentEnum passerIntent, TownBuildingEnum buildingEnum, Vector3 eventPosition) { this.passerIntent = passerIntent; StopAllCoroutines(); switch (passerIntent) { case PasserIntentEnum.LeaveTown: IntentForLeaveTown(); break; case PasserIntentEnum.StayInTown: IntentForStayInTown(); break; case PasserIntentEnum.GoToBuilding: IntentForGoToBuilding(buildingEnum); break; case PasserIntentEnum.StayInBuilding: IntentForStayInBuilding(buildingToGo); break; case PasserIntentEnum.LeaveBuilding: IntentForLeaveBuilding(); break; case PasserIntentEnum.GoToEvent: IntentForGoToEvent(eventPosition); break; case PasserIntentEnum.LookOnEvent: IntentForLookOnEvent(); break; } }
public void SetIntent(PasserIntentEnum passerIntent, TownBuildingEnum buildingEnum) { SetIntent(passerIntent, buildingEnum, Vector3.zero); }
public void SetIntent(PasserIntentEnum passerIntent, Vector3 eventPosition) { SetIntent(passerIntent, TownBuildingEnum.Guild, eventPosition); }
public void SetIntent(PasserIntentEnum passerIntent) { SetIntent(passerIntent, TownBuildingEnum.Guild, Vector3.zero); }