예제 #1
0
 protected override void Start()
 {
     missileSpeed               = 15f;
     timerManager               = GetComponent <TimerManager>();
     readyShot                 += ReadyShot;
     mChargingClip              = m_ChargingEffect.GetComponent <AudioSource>();
     mChargingFailedClip        = m_ChargingFailedEffect.GetComponent <AudioSource>();
     mRandomChargingSFXAssigner = mChargingFailedClip.GetComponent <RandomSFXAssigner>();
     base.Start();
 }
예제 #2
0
파일: Canon.cs 프로젝트: pocorbin/Moonshot
 // Start is called before the first frame update
 protected virtual void Start()
 {
     audioSource = GetComponent <AudioSource>();
     sfxAssigner = GetComponent <RandomSFXAssigner>();
 }