コード例 #1
0
ファイル: PathFinderMB.cs プロジェクト: underleg/Home
    /// <summary>
    ///
    /// </summary>
    private void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            instance = this;
        }

        m_requestManager = GetComponent <PathRequestManagerMB>();
    }
コード例 #2
0
 void Awake()
 {
     instance    = this;
     pathfinding = GetComponent <PathFinderMB>();
 }