public FX(EFXType type) { #if UNITY_EDITOR m_Name = type.ToString(); #endif }
public void SpawnOtherFX(EFXType fxType) { m_FXManager.SpawnOtherFX(m_PlayerInfoComponent.GetPlayerIndex(), fxType, m_FXHook.position, m_FXHook.localRotation, m_FXHook.lossyScale.x < 0); }
public void SpawnOtherFX(int playerIndex, EFXType fXType, Vector3 position, Quaternion rotation, bool flipFX) { GameObject finalHitFXInstance = GetOrCreateFXInstance(fXType, AttackConfig.Instance.m_OtherFX[(int)fXType].m_FX, (playerIndex == 0) ? Player.Player1 : Player.Player2, (playerIndex == 0) ? m_Player1OtherFXInstances : m_Player2OtherFXInstances); SpawnFX_Internal(finalHitFXInstance, position, rotation, flipFX); }