private void CreateBlock() { GameObject obj = this.pool.PopFromPool(this.prefab, false, true, this.container); obj.transform.position = this.transform.position; IPadMovement padMovement = obj.GetComponent <IPadMovement>(); padMovement.InitPadMovement(this as IPadController, this.selfColor, this.rhythmController.ContainerPad, this.bpm); }
public void OnPointerEnter() { if (this.currentPadMovement != null) { this.rhythmStreak.IncreaseStreak(this.index); this.currentPadMovement.TapOnPadSuccessful(); this.currentPadMovement = null; return; } this.rhythmStreak.ResetStreak(); }
public void SetEndPadCollisionExit(IPadMovement padMovement) { this.currentPadMovement = null; this.rhythmStreak.ResetStreak(); }
public void SetEndPadCollisionEnter(IPadMovement padMovement) { this.currentPadMovement = padMovement; }