Пример #1
0
    void Awake()
    {
        m_propBlock = new MaterialPropertyBlock();
        m_renderer  = GetComponent <Renderer>();

        m_variables = OutlineVariables.GetInstance();
    }
 void Awake()
 {
     if (m_instance == null)
     {
         m_instance = this;
     }
     else
     {
         Debug.LogError("OutlineVariables instance already exists.");
         Destroy(gameObject);
     }
 }