コード例 #1
0
 void OnEnable()
 {
     if (target == null)
     {
         return;
     }
     turret = target as NormalTurretCtrl;
 }
コード例 #2
0
        private void Start()
        {
            normalTurretCtrl = GetComponent <NormalTurretCtrl>();

            bullet.gameObject.SetActive(false);

            PoolManager.Instance.CreatePool(POOLNAME_FIREAUDIO, fireAudio.GetComponent <PoolObject>(), 0, 20f, 20f);
            PoolManager.Instance.CreatePool(POOLNAME_BOOMAUDIO, boomAudio.GetComponent <PoolObject>(), 0, 20f, 20f);
        }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     normalTurretCtrl = GetComponent <NormalTurretCtrl>();
     isFire           = false;
 }
コード例 #4
0
ファイル: NormalTurretUI.cs プロジェクト: guccang/GamePlayLab
 // Start is called before the first frame update
 void Start()
 {
     normalleTurretCtrl = GetComponent <NormalTurretCtrl>();
 }
コード例 #5
0
 public void Init(NormalTurretCtrl normalTurretCtrl)
 {
     nowLifeTime = 0;
     audioSource.Play();
     this.normalTurretCtrl = normalTurretCtrl;
 }