void Start() { m_player = GameObject.FindGameObjectWithTag("Player"); m_characterController = GetComponent <CharacterController>(); m_sr = GetComponent <SpriteRenderer>(); m_combat = GetComponent <BasicCombat>(); m_combat.TargetTag = "Player"; }
void Start() { playerFight = GameObject.FindGameObjectWithTag("Player"); pawnAtk = GetComponent <pawnClass>(); archerAtk = GetComponent <archerClass>(); playerAtk = GetComponent <KennedyClass>(); bc = GetComponent <BasicCombat>(); }
// Use this for initialization void Start() { MyCamera = playerCamera; Initiate(); StartCoroutine(UpdateRangeToTarget()); playerCombat = Player.GetComponent <BasicCombat> (); playerCollider = Player.GetComponent <Collider> (); StartCoroutine(LooseTarget()); }
protected override void Start() { base.Start(); m_animator = GetComponent <Animator>(); Combat = GetComponent <BasicCombat>(); m_healthSystem = GetComponent <HealthBehaviour>(); m_healthSystem.OnHit += GetAttacked; }