예제 #1
0
 protected virtual void BallInsideHole()
 {
     _ball.IsInKickoutHole = true;
     _startTime            = Time.time;
     _ball.ExitingRamp    -= BallInsideHole;
     _ball.SetPhysicsEnabled(false);
 }
예제 #2
0
        public void InstanceNextBall(Pinball pinball)
        {
            pinball.SetPhysicsEnabled(false);

            if (!Launcher.Instance.BallOnLauncher)
            {
                StartCoroutine(BallLaunchArrivalRoutine(pinball));
            }
            else
            {
                pinball.transform.position = _ballLaunchPoint;
                //Debug.LogWarning("A ball may already be in the launch area");
            }

            pinball.SetPhysicsEnabled(true);
            Launcher.Instance.StartLaunch(pinball);
        }