public AvatarAsset() { foreach (AvatarTarget item in Enum.GetValues(typeof(AvatarTarget))) { Organ temp = new Organ() { Part = item }; partdic[temp.Part] = temp; } }
/// <summary> /// 资源被抢走 /// </summary> /// <param name="organ"></param> public void LostAsset(Organ organ) { if (MustAsset.Contains(organ.Part)) { if (State == aStateState.WaitStart) { State = aStateState.Sleep; } if (State == aStateState.OnUpdate) { State = aStateState.WaitExit; } } }