protected override void OnFree() { HyperDash.UnbindFrom(HitObject.HyperDashBindable); ScaleBindable.UnbindFrom(HitObject.ScaleBindable); IndexInBeatmap.UnbindFrom(HitObject.IndexInBeatmapBindable); base.OnFree(); }
protected override void OnApply() { base.OnApply(); HyperDash.BindTo(HitObject.HyperDashBindable); ScaleBindable.BindTo(HitObject.ScaleBindable); IndexInBeatmap.BindTo(HitObject.IndexInBeatmapBindable); }
private void load() { IndexInBeatmap.BindValueChanged(change => { VisualRepresentation.Value = GetVisualRepresentation(change.NewValue); }, true); VisualRepresentation.BindValueChanged(_ => updatePiece()); HyperDash.BindValueChanged(_ => updatePiece(), true); }
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); }
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(); }
private void load() { HyperDash.BindValueChanged(_ => updatePiece(), true); }