Пример #1
0
    public HitFX(EHitFXType type)
    {
#if UNITY_EDITOR
        m_Name = type.ToString();
#endif
    }
Пример #2
0
 public void SpawnHitFX(EHitFXType hitFXType)
 {
     m_FXManager.SpawnHitFX(m_PlayerInfoComponent.GetPlayerIndex(), hitFXType, m_FXHook.position, m_FXHook.localRotation, m_FXHook.lossyScale.x < 0);
 }
Пример #3
0
    public void SpawnHitFX(int playerIndex, EHitFXType hitFXType, Vector3 position, Quaternion rotation, bool flipFX)
    {
        GameObject finalHitFXInstance = GetOrCreateFXInstance(hitFXType, AttackConfig.Instance.m_HitFX[(int)hitFXType].m_FX, (playerIndex == 0) ? Player.Player1 : Player.Player2, (playerIndex == 0) ? m_Player1HitFXInstances : m_Player2HitFXInstances);

        SpawnFX_Internal(finalHitFXInstance, position, rotation, flipFX);
    }