设置scriptable存储角色信息,调整编队系统部分代码逻辑
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
/// <summary>
|
||||
/// 适用于编队系统数据层,存储单个队伍的信息
|
||||
/// </summary>
|
||||
public class TeamSetting
|
||||
{
|
||||
public TeamSetting(List<CharacterView> teamList, int leaderId)
|
||||
{
|
||||
this.teamIdList = teamIdList;
|
||||
LeaderId = leaderId;
|
||||
}
|
||||
|
||||
|
||||
public List<CharacterView> teamIdList = new List<CharacterView>();
|
||||
|
||||
/// <summary>
|
||||
/// 队长
|
||||
/// </summary>
|
||||
public int LeaderId{get; set;}
|
||||
|
||||
}
|
||||
|
||||
public class CharacterView
|
||||
{
|
||||
public CharacterView(int characterId, string currentBoundaryLevel)
|
||||
{
|
||||
this.characterId = characterId;
|
||||
this.currentBoundaryLevel = currentBoundaryLevel;
|
||||
}
|
||||
|
||||
public int characterId{get; set;}
|
||||
public string currentBoundaryLevel{get; set;}
|
||||
}
|
||||
Reference in New Issue
Block a user