示例#1
0
        public virtual void StopSound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType, MonoBehaviour owner, MonoBehaviour parent)
        {
            //FCgSoundElement soundElement    = GetSound(viewType, fireMode, soundType);
            //ICgManager_Sound manager_sound  = ICgManager_Sound.Get();

            //manager_sound.Stop(soundElement, owner, parent);
        }
示例#2
0
 public float Get(ECgViewType viewType)
 {
     if (viewType == ECgViewType.FirstPerson || viewType == ECgViewType.VR)
     {
         return(Distance1P);
     }
     if (viewType == ECgViewType.ThirdPerson)
     {
         return(Distance3P);
     }
     return(0.0f);
 }
示例#3
0
 public string GetBone(ECgViewType viewType)
 {
     if (viewType == ECgViewType.FirstPerson)
     {
         return(Effect1P.Bone);
     }
     if (viewType == ECgViewType.ThirdPerson)
     {
         return(Effect3P.Bone);
     }
     return(ECgCached.Str.NAME_None);
 }
示例#4
0
 public FCgFxElement Get(ECgViewType viewType)
 {
     if (viewType == ECgViewType.FirstPerson)
     {
         return(Effect1P);
     }
     if (viewType == ECgViewType.ThirdPerson)
     {
         return(Effect3P);
     }
     if (viewType == ECgViewType.VR)
     {
         return(Effect1P);
     }
     return(Effect3P);
 }
示例#5
0
 public AnimationClip Get(ECgViewType viewType, bool isLow = false)
 {
     if (viewType == ECgViewType.FirstPerson)
     {
         return(Anim1P_Internal);
     }
     if (viewType == ECgViewType.ThirdPerson)
     {
         return(isLow ? Anim3P_Low_Internal : Anim3P_Internal);
     }
     if (viewType == ECgViewType.VR)
     {
         return(AnimVR_Internal);
     }
     return(Anim3P_Internal);
 }
示例#6
0
        public virtual void PlaySound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType, MonoBehaviour owner, Vector3 location)
        {
            FCgSoundElement soundElement = GetSound(viewType, fireMode, soundType);

            if (soundElement.Get() == null)
            {
                FCgDebug.LogWarning("MCsData_ProjectileWeapon.PlaySound: Attempting to Play a NULL Sound.");
                return;
            }

            //ICgManager_Sound manager_sound = ICgManager_Sound.Get();

            /*
             * FCsSoundPayload* Payload = Manager_Sound->AllocatePayload();
             * Payload->Set(SoundElement);
             * Payload->Owner = InOwner;
             * Payload->Location = Location;
             *
             * Manager_Sound->Play(Payload);
             */
        }
示例#7
0
 public virtual void GetDefaultMaterials(ref List <Material> outMaterials, ECgViewType viewType, bool isLow = false)
 {
 }
示例#8
0
 public virtual void SetMesh(Transform transform, ECgViewType viewType, bool isLow = false)
 {
 }
示例#9
0
 public virtual void SetMesh(MeshRenderer meshRenderer, ECgViewType viewType, bool isLow = false)
 {
 }
示例#10
0
 public virtual float GetDrawDistanceSq(ECgViewType viewType)
 {
     return(0.0f);
 }
示例#11
0
        FCgFxElement GetMuzzleFX(ECgViewType viewType, int index = 0)
        {
            int count = MuzzleFXs.Count;

            return(count > EMPTY ? MuzzleFXs[index % count].Get(viewType) : null);
        }
示例#12
0
 public virtual string GetMuzzleBone(ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0)
 {
     return(ECgCached.Str.NAME_None);
 }
示例#13
0
 public virtual FCgSoundElement GetSound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType)
 {
     return(null);
 }
示例#14
0
 public virtual FCgFxElement GetMuzzleFX(ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0)
 {
     return(null);
 }
示例#15
0
 public override Mesh GetMesh(ECgViewType viewType)
 {
     return(_Mesh);
 }
示例#16
0
 public virtual Vector3 GetMuzzleLocation(MCgSkeleton skeleton, ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0)
 {
     return(skeleton.GetBoneLocation(GetMuzzleBone(viewType, fireMode, index)));
 }
示例#17
0
 public virtual Mesh GetMesh(ECgViewType viewType, bool isLow = false)
 {
     return(null);
 }
示例#18
0
        string GetMuzzleBone(ECgViewType viewType, int index = 0)
        {
            int count = MuzzleFXs.Count;

            return(count > EMPTY ? MuzzleFXs[index % count].GetBone(viewType) : null);
        }
示例#19
0
 public virtual Mesh GetMesh(ECgViewType viewType)
 {
     return(null);
 }