void Awake() { ActiveState = GOBLIN_STATE.IDLE; Notifications = GameObject.Find("GameManager").GetComponent <NotificationsManager>(); player = GameObject.Find("Player Capsule"); sound = GetComponent <AudioSource>(); thisTransform = gameObject.GetComponent <Transform>(); walkingPoints = GameObject.FindGameObjectsWithTag("WalkingPoint"); chillTime = Random.Range(chillTimeMin, chillTimeMax); }
public void ChangeState(GOBLIN_STATE State) { ActiveState = State; }