예제 #1
0
        public void Create(string rewardId, RewardParticleSystemFactoryParams parameters)
        {
            RewardParticleSystemBuilder builder = m_DiContainer.TryResolveId <RewardParticleSystemBuilder>(rewardId);

            if (builder == null)
            {
                Debug.LogError($"Could not find a factory with reward id: {rewardId}");
                return;
            }

            builder.Create(parameters);
        }
예제 #2
0
 public void Create(RewardParticleSystemFactoryParams parameters)
 {
     m_AmountFactory.Create(parameters.amountBadgeParams);
     m_SpeedFactory.Create(parameters.speedBadgeParams);
     m_StreakFactory.Create(parameters.streakBadgeParams);
 }