protected virtual void Awake()
 {
     if (COMPONENT_DATABASE == null)
     {
         COMPONENT_DATABASE = FindObjectOfType <GoapWorldComponentDatabase>();
     }
 }
Beispiel #2
0
    protected virtual void Start()
    {
        m_Preconditions = new Dictionary <string, object>();
        m_Effects       = new Dictionary <string, object>();

        if (COMPONENT_DATABASE == null)
        {
            COMPONENT_DATABASE = FindObjectOfType <GoapWorldComponentDatabase>();
        }
    }