Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        timeLastFrame = Time.realtimeSinceStartup;

        GetComponent <Collider2D>().sharedMaterial.friction = 0.4f;
        fim         = FindObjectOfType <FrictionIM>();
        target      = FindObjectOfType <Target>();
        sceneLoader = FindObjectOfType <SceneLoader>();
        fsolver     = FindObjectOfType <FSolver>();
    }
    // Start is called before the first frame update.
    void Start()
    {
        fim     = FindObjectOfType <FrictionIM>();
        fsolver = FindObjectOfType <FSolver>();
        disk    = FindObjectOfType <Disk>();
        target  = FindObjectOfType <Target>();

        SceneGen();
        instructions = GameObject.Find("Instructions");
        help         = GameObject.Find("Help");
        help.SetActive(false);
    }