protected void Awake() { anim = GetComponent <Animator> (); audioSource = GetComponent <AudioSource> (); boneRig = GetComponentsInChildren<Rigidbody>(); status = GetComponent<CharacterStatus>(); floatingHealthBarSpawner = GetComponent<EnergyBarSpawnerUGUI>(); maxHealth = status.MaxHealth; currentHealth = maxHealth; }
void Start() { spawner = GetComponent<EnergyBarSpawnerUGUI>(); StartCoroutine(Work()); }