示例#1
0
 public AvatarAsset()
 {
     foreach (AvatarTarget item in Enum.GetValues(typeof(AvatarTarget)))
     {
         Organ temp = new Organ() { Part = item };
         partdic[temp.Part] = temp;
     }
 }
示例#2
0
 public AvatarAsset()
 {
     foreach (AvatarTarget item in Enum.GetValues(typeof(AvatarTarget)))
     {
         Organ temp = new Organ()
         {
             Part = item
         };
         partdic[temp.Part] = temp;
     }
 }
示例#3
0
文件: aState.cs 项目: lin5/MMDARPG
        /// <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;
                }
            }
        }
示例#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;
                }
            }
        }