// Start is called before the first frame update protected void Start() { // Get Components hive = GameManager.instance.hive; agent = GetComponent <NavMeshAgent>(); beeMovement = GetComponent <BeeMovement>(); beeData = GetComponent <BeeData>(); // Add self to game manager GameManager.instance.bees.Add(this); }
private BeeData data; // The Bee Data Component // Start is called before the first frame update void Start() { // Get Components data = GetComponent <BeeData>(); }