void Start() { audioSource = GetComponent <AudioSource>(); SoundMechanicHandler.AddListener(transform); EnergyHandler.AddEnergyObject(this); Energy = 0; rb = GetComponent <Rigidbody>(); sM = new CoreDrainerStateMachine(this); SendMessage("GetFSM", sM); }
private void Start() { SoundMechanicHandler.AddListener(transform); }
void Start() { SoundMechanicHandler.AddListener(transform); audioSource = GetComponent <AudioSource>(); animator = GetComponent <Animator>(); }