// Use this for initialization void Start() { playerControl = transform.root.GetComponent <CharacterController2D>(); playerHealth = transform.root.GetComponent <PlayerHealthManager>(); shoot = transform.GetComponentInChildren <FireBullet>(); attack = transform.GetComponentInChildren <AttackScript>(); chargeAttack = transform.GetComponentInChildren <PlayerChargeMelee>(); element = transform.root.GetComponent <ElementSystem>(); }
void Start() { script = GameObject.Find("Charge Melee Hitbox").GetComponent <PlayerChargeMelee>(); }
// Use this for initialization void Start() { range = GameObject.Find("Player Character").GetComponentInChildren <FireBullet>(); melee = GameObject.Find("Player Character").GetComponentInChildren <AttackScript>(); cmelee = GameObject.Find("Player Character").GetComponentInChildren <PlayerChargeMelee>(); }