Пример #1
0
 public void UseSkill(Transform hand, bool isAutoRelease)
 {
     if (readyTimer <= 0)
     {
         GameObject nextDanmaku   = danmakuPool.GetDanmaku(0);
         Danmaku    danmakuScript = nextDanmaku.GetComponent <Danmaku>();
         if (nextDanmaku != null)
         {
             nextDanmaku.transform.position = hand.position;
             nextDanmaku.transform.rotation = hand.rotation;
             danmakuScript.SetPlayerStatusReference(gameObject.GetComponent <PlayerStatus>());
             nextDanmaku.SetActive(true);
             readyTimer = 10;
         }
     }
 }