public void SetUpRacket() { iRacket = Substitute.For <IRacket>(); racketController = new RacketController(); racketController.SetIRacket(iRacket); racketController.SetLocalDeltaTime(1f); racketController.SetRacketVelocity(1f); racketController.SetRacketLimit(10); }
//-------------------------------- void Start() { racketController = new RacketController(); racketController.SetIRacket(this); SetPosition(transform.position); }