예제 #1
0
 /// <summary>
 /// On awake find the ocean and store a reference to it.
 /// </summary>
 protected virtual void Awake()
 {
     try
     {
         m_ocean = GetComponent<Ocean>();
         m_ocean.Register(this);
     }
     catch(Exception e)
     {
         Ocean.LogError(e.ToString());
         WasError = true;
         enabled = false;
     }
 }
 /// <summary>
 /// On awake find the ocean and store a reference to it.
 /// </summary>
 protected virtual void Awake()
 {
     try
     {
         m_ocean = GetComponent <Ocean>();
         m_ocean.Register(this);
     }
     catch (Exception e)
     {
         Ocean.LogError(e.ToString());
         WasError = true;
         enabled  = false;
     }
 }