Esempio n. 1
0
    void Start()
    {
        Target = PlayerManager.instance.GetPlayer().GetComponent <PlayerRanged>();
        locomotionController = GetComponent <LocomotionController>();
        combatController     = GetComponent <MeleeCombatController>();

        GameObject bus = GameObject.Find("Bus");

        if (bus == null)
        {
            Debug.LogError("AggroableEnemy could not find Bus object. Destroying gameObject");
            Destroy(gameObject);
        }
        SaveTransform = bus.transform;
    }
Esempio n. 2
0
 void Start()
 {
     Cam = Camera.main;
     locomotionController = GetComponent <LocomotionController>();
     combatController     = GetComponent <MeleeCombatController>();
 }