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; }
void Start() { Cam = Camera.main; locomotionController = GetComponent <LocomotionController>(); combatController = GetComponent <MeleeCombatController>(); }