Esempio n. 1
0
    // 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);
    }
Esempio n. 2
0
    private BeeData data;   // The Bee Data Component

    // Start is called before the first frame update
    void Start()
    {
        // Get Components
        data = GetComponent <BeeData>();
    }