// Start is called before the first frame update void Awake() { rb = GetComponent <Rigidbody>(); mover = GetComponent <MoveTowardsPoint>(); seekingBehaviour = GetComponent <OrderAgentSeeking>(); dyingBehaviour = GetComponent <OrderAgentDying>(); }
// Start is called before the first frame update void Awake() { rb = GetComponent <Rigidbody>(); mover = GetComponent <MoveTowardsPoint>(); dyingBehaviour = GetComponent <OrderAgentDying>(); returningBehaviour = GetComponent <OrderAgentReturning>(); scaler = GetComponent <AgentScaler>(); audioSource = GetComponent <AudioSource>(); }