Exemplo n.º 1
0
        protected override void OnFree()
        {
            HyperDash.UnbindFrom(HitObject.HyperDashBindable);
            ScaleBindable.UnbindFrom(HitObject.ScaleBindable);
            IndexInBeatmap.UnbindFrom(HitObject.IndexInBeatmapBindable);

            base.OnFree();
        }
Exemplo n.º 2
0
        protected override void OnApply()
        {
            base.OnApply();

            HyperDash.BindTo(HitObject.HyperDashBindable);
            ScaleBindable.BindTo(HitObject.ScaleBindable);
            IndexInBeatmap.BindTo(HitObject.IndexInBeatmapBindable);
        }
Exemplo n.º 3
0
        private void load()
        {
            IndexInBeatmap.BindValueChanged(change =>
            {
                VisualRepresentation.Value = GetVisualRepresentation(change.NewValue);
            }, true);

            VisualRepresentation.BindValueChanged(_ => updatePiece());
            HyperDash.BindValueChanged(_ => updatePiece(), true);
        }
Exemplo n.º 4
0
        private void load()
        {
            ScaleContainer.Rotation = (float)(RNG.NextDouble() - 0.5f) * 40;

            IndexInBeatmap.BindValueChanged(change =>
            {
                VisualRepresentation.Value = GetVisualRepresentation(change.NewValue);
            }, true);

            VisualRepresentation.BindValueChanged(_ => updatePiece());
            HyperDash.BindValueChanged(_ => updatePiece(), true);
        }
Exemplo n.º 5
0
 public void Initialize()
 {
     player       = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
     GM           = GameObject.FindGameObjectWithTag("Managers").GetComponent <GameManager>();
     laser        = GetComponentInChildren <LaserGun>();
     flameThrower = GetComponentInChildren <FlameThrower>();
     hJump        = GetComponentInChildren <HyperJump>();
     hDash        = GetComponentInChildren <HyperDash>();
     mLauncher    = GetComponentInChildren <MisileLauncher>();
     absorb       = GetComponentInChildren <Absorb>();
     laser.Initialize();
     flameThrower.Initialize();
     hJump.Initialize();
     hDash.Initialize();
     mLauncher.Initialize();
     absorb.Initialize();
 }
Exemplo n.º 6
0
 private void load()
 {
     HyperDash.BindValueChanged(_ => updatePiece(), true);
 }