コード例 #1
0
    void Start()
    {
        controller = GetComponent<Controller2D>();

        quizSystem = GameObject.Find("QuizSystem").GetComponent<QuizSystem>();

        gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2);
        maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex;
        minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight);
    }
コード例 #2
0
 public void SetUp()
 {
     testObject = new QuizSystem();
 }