Пример #1
0
    // Use this for initialization
    void Start()
    {
        m_descriptor = descriptor;

        m_waveDirection = new Vector2(0f, 0f);
        m_heightMap     = new NativeArray <float>(m_descriptor.pixelSize * m_descriptor.pixelSize,
                                                  Allocator.Persistent);

        managedHeightMap = new float[m_descriptor.pixelSize * m_descriptor.pixelSize];
    }
Пример #2
0
 // Use this for initialization
 protected virtual void OnEnable()
 {
     m_descriptor = editorDescriptor;
     m_heightMap  = new NativeArray <float>(m_descriptor.pixelSize * m_descriptor.pixelSize,
                                            Allocator.Persistent);
 }