Exemple #1
0
 public GameObject Create(TapEffectType type)
 {
     if (type == TapEffectType.Sample)
     {
         return(_container.InstantiatePrefab(_samplePrefab));
     }
     else
     {
         return(_container.InstantiatePrefab(_settings.Prefabs[(int)type]));
     }
 }
 public void Start(TapEffectType type)
 {
     _onStart.OnNext(type);
 }
Exemple #3
0
 void ITapEffectController.Start(TapEffectType type)
 {
     _onStart.OnNext(type.ToString());
 }