Example #1
0
 public override IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller)
 {
     this.AddUIImage(controller);
     return(fieldStatus.GetAccessCountAsObservable(x, y)
            .Skip(1)
            .Where(accessed => accessed > 0)
            .Subscribe(_ =>
     {
         Debug.Log(message);
     }));
 }
Example #2
0
 public override IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller)
 {
     this.AddUIImage(controller);
     return(fieldStatus.GetAccessCountAsObservable(x, y)
            .Skip(1)
            .Where(accessed => accessed > 0)
            .Subscribe(_ =>
     {
         GameManager.Instance.StateController.Change(GameManager.GameSystemType.Battle, new GameState.Battle.Argument {
             enemyId = enemyId
         });
     }));
 }
Example #3
0
 public abstract IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller);
Example #4
0
 public override IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller)
 {
     this.AddUIImage(controller);
     return(Disposable.Empty);
 }
Example #5
0
 public static void AddUIImage(this IFieldEvent self, FieldCellButtonController controller)
 {
     Object.Instantiate(self.UIImagePrefab, controller.EventRoot.transform, false);
 }