Exemplo n.º 1
0
 public void Dispose()
 {
     // Presentation
     if (m_Presentation)
     {
         m_Presentation.Dispose();
         Destroy(m_Presentation.gameObject);
         m_Presentation = null;
     }
 }
Exemplo n.º 2
0
    public void Initialize(Vector2 mapSize)
    {
        m_MapBox = hwmBox2D.BuildAABB(Vector2.zero, mapSize * 0.5f);

        // Presentation
        if (hwmWorld.GetInstance().NeedPresentation())
        {
            m_Presentation = (Instantiate(hwmSystem.GetInstance().GetAssetLoader().LoadAsset(hwmAssetLoader.AssetType.Game, "MapPresentation")) as GameObject).GetComponent <slMapPresentation>();
            m_Presentation.transform.SetParent(transform, false);
            m_Presentation.Initialize(this);
        }
    }