Пример #1
0
        public void DestoryPet(PetType _type)
        {
            BasePet pet = this.GetPet(_type);

            if (pet != null)
            {
                pet.Destory();
            }
        }
Пример #2
0
        public void CreatePet(PetType _type, string _prefabName, Vector3 _offset)
        {
            BasePet pet = this.GetPet(_type);

            if (pet != null)
            {
                pet.Create(_prefabName, _offset);
            }
        }
Пример #3
0
 private bool IsEquals(BasePet rhs)
 {
     return(this.bActive == rhs.bActive && this.curAnimName == rhs.curAnimName && this.deltaTime == rhs.deltaTime && this.moveDir == rhs.moveDir && this.moveSpeed == rhs.moveSpeed && this.curState == rhs.curState && this.offsetDistance == rhs.offsetDistance && this.offset == rhs.offset && this.meshObj == rhs.meshObj && this.animSet == rhs.animSet && this.parentObj == rhs.parentObj && this.actorPtr == rhs.actorPtr);
 }