コード例 #1
0
    // ************ //
    // ** Update ** //
    // ************ //

    void Update()
    {
                #if UNITY_EDITOR
        if (!EditorApplication.isPlaying)
        {
            if (pressToGenerate)
            {
                NewMap();
                if (path != null)
                {
                    path.BakePathfinding(cubeAll);
                }
                pressToGenerate = false;
            }
        }
                #endif
    }