private float waitTime = 1f; // seconds void Awake() { goapEnemyAI = GetComponent <GoapEnemyAI>(); if (goapEnemyAI == null) { Debug.Log("Must attach this to a valid GoapEnemyAI type"); } }