예제 #1
0
 protected virtual void Awake()
 {
     if (COMPONENT_DATABASE == null)
     {
         COMPONENT_DATABASE = FindObjectOfType <GoapWorldComponentDatabase>();
     }
 }
예제 #2
0
파일: GoapAction.cs 프로젝트: yazici/goap
    protected virtual void Start()
    {
        m_Preconditions = new Dictionary <string, object>();
        m_Effects       = new Dictionary <string, object>();

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