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); })); }
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 }); })); }
public abstract IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller);
public override IDisposable Register(int x, int y, FieldStatus fieldStatus, FieldCellButtonController controller) { this.AddUIImage(controller); return(Disposable.Empty); }
public static void AddUIImage(this IFieldEvent self, FieldCellButtonController controller) { Object.Instantiate(self.UIImagePrefab, controller.EventRoot.transform, false); }