public static void AddGroup(FishGroup group) { if (fishGroups == null) { fishGroups = new List <FishGroup>(); } if (!fishGroups.Contains(group)) { fishGroups.Add(group); } }
private float speed = 0; //初始速度(其实没用,本来打算鱼从速度0加速到移动速度moveSpeed) public void SetGroup(int index) { myGroup = FishGroup.GetFishGroup(index); }
public void OnEnable() { _group = target as FishGroup; }
public void OnEnable() { _group = target as FishGroup; }