//private MeleeAttackEngine meleeAttackEngine; public void Awake() // need this to happen before start { navigation = GetComponent <Navigation>(); // creates a reference to the Navigation component on the game object navigationAgent = GetComponent <NavMeshAgent>(); decisionMaking = GetComponent <DecisionMaking>(); // as above except decision making characterSheet = GetComponent <CharacterSheet>(); }
public void Awake() { characterSheet = GetComponent <CharacterSheet>(); //CharacterSheet(); // set the contents of the character sheet to the constructor values decisionMaking = GetComponent <DecisionMaking>(); // reference to decision making script }