Ejemplo n.º 1
0
 public MenuSystem(IMenuBehaviour menuBehaviour, ISpawnableBehaviour spawnableBehaviour)
 {
     menuBehaviour_               = menuBehaviour;
     spawnableBehaviour_          = spawnableBehaviour;
     menuBehaviour_.SwipeUpdated += OnSwipeUpdated;
     menuBehaviour_.SpawnPressed += OnSpawnPressed;
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     menuBehaviour_      = Substitute.For <IMenuBehaviour>();
     spawnableBehaviour_ = Substitute.For <ISpawnableBehaviour>();
     menuSystem_         = new MenuSystem(menuBehaviour_, spawnableBehaviour_);
 }