重做杂兵
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Cielonos.MainGame
|
||||
public ItemBase itemSource;
|
||||
public List<Fraction> targetFractions;
|
||||
public Transform topParent;
|
||||
public AudioContainer audioContainer;
|
||||
public Collider areaCollider;
|
||||
public Dictionary<string, GameObject> functionalParts;
|
||||
|
||||
@@ -74,12 +73,6 @@ namespace Cielonos.MainGame
|
||||
{
|
||||
//areaCollider.excludeLayers = LayerMask.GetMask("AttackAreaVFX", "DecoVFX", "Ignore Raycast");
|
||||
}
|
||||
|
||||
audioContainer = GetComponent<AudioContainer>();
|
||||
if (audioContainer != null)
|
||||
{
|
||||
audioContainer.soundEventDictionary = new Dictionary<string, AK.Wwise.Event>();
|
||||
}
|
||||
|
||||
while (topParent.parent != null &&
|
||||
//topParent.parent != creator.flexibleCenterPoint &&
|
||||
|
||||
@@ -145,13 +145,6 @@ namespace Cielonos.MainGame
|
||||
checkedObjects.Add(obj);
|
||||
}
|
||||
|
||||
public void PlayHitSound(Vector3 position, string soundName)
|
||||
{
|
||||
if (hitSoundList.Count == 0) return;
|
||||
|
||||
attackArea.audioContainer.PlaySoundFX(soundName, position);
|
||||
}
|
||||
|
||||
public void InvokeAllHitEvents(CharacterBase target, Vector3 hitPosition)
|
||||
{
|
||||
if (attackArea.canTriggerHitEvent)
|
||||
|
||||
Reference in New Issue
Block a user