Exemplo n.º 1
0
    /// <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;
        }
    }
Exemplo n.º 2
0
 public void SetIntent(PasserIntentEnum passerIntent, TownBuildingEnum buildingEnum)
 {
     SetIntent(passerIntent, buildingEnum, Vector3.zero);
 }
Exemplo n.º 3
0
 public void SetIntent(PasserIntentEnum passerIntent, Vector3 eventPosition)
 {
     SetIntent(passerIntent, TownBuildingEnum.Guild, eventPosition);
 }
Exemplo n.º 4
0
 public void SetIntent(PasserIntentEnum passerIntent)
 {
     SetIntent(passerIntent, TownBuildingEnum.Guild, Vector3.zero);
 }