Beispiel #1
0
 public AvatarAsset()
 {
     foreach (AvatarTarget item in Enum.GetValues(typeof(AvatarTarget)))
     {
         Organ temp = new Organ() { Part = item };
         partdic[temp.Part] = temp;
     }
 }
Beispiel #2
0
 public AvatarAsset()
 {
     foreach (AvatarTarget item in Enum.GetValues(typeof(AvatarTarget)))
     {
         Organ temp = new Organ()
         {
             Part = item
         };
         partdic[temp.Part] = temp;
     }
 }
Beispiel #3
0
        /// <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;
                }
            }
        }
Beispiel #4
0
        /// <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;
                }
            }
        }