void InitProjectionGrid() { ReleaseProjectionGrid(); mProjectionGrid = new ProjectionGrid(); mProjectionGrid.Initial(OceanDrawer); }
void ReleaseProjectionGrid() { if (mProjectionGrid != null) { mProjectionGrid.Release(); mProjectionGrid = null; } }
protected override void Draw(Vector3 _lookAt, Material _drawer) { if (mProjectionGrid == null) { mProjectionGrid = new ProjectionGrid(); mProjectionGrid.Initial(_drawer); } mProjectionGrid.Draw(); }