Exemple #1
0
        // Use this for initialization
        protected override void Start()
        {
            base.Start();

            this.taskInfoController     = new PlaybackTaskInfoEventController(this.trialNumberText, this.timeLeftValText, this.taskMessageText);
            this.scoreController        = new PlaybackScoreEventController(this.scoreText, this.totalText);             // Score
            this.hsrCollisionController = new PlaybackHsrCollisionEventController(this.collisionEffect);                // HSR Collision
            this.panelNoticeController  = new PlaybackPanelNoticeEventController(this, this.mainMenu);                  // Notice of a Panel
        }
 public void OnRobotCollisionEnter(Collision collision, float collisionVelocity, float effectScale)
 {
     base.AddDataLine(PlaybackHsrCollisionEventController.GetDataLine(this.GetHeaderElapsedTime(), collision, collisionVelocity, effectScale));
 }