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