コード例 #1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.S))
        {
            SetStartAndGoal();
            mapController.SetSpotsColor();
        }

        if (Input.GetKeyDown(KeyCode.F))
        {
            StartCoroutine(FindAPath());
        }

        if (Input.GetKeyDown(KeyCode.R))
        {
            ResetAll();
        }
    }