コード例 #1
0
 /// <summary>
 /// Handles a Danmaku collision. Only ever called with Danmaku that pass the filter.
 /// </summary>
 /// <param name="danmaku">the danmaku that hit the collider.</param>
 /// <param name="info">additional information about the collision</param>
 protected override void DanmakuCollision(Danmaku danmaku,
                                          RaycastHit2D info)
 {
     danmaku.Destroy();
 }
コード例 #2
0
 /// <summary>
 /// Handles a Danmaku collision. Only ever called with Danmaku that pass the filter.
 /// </summary>
 /// <param name="danmaku">the danmaku that hit the collider.</param>
 /// <param name="info">additional information about the collision</param>
 protected override void DanmakuCollision(Danmaku danmaku,
                                          RaycastHit2D info) {
     danmaku.Destroy();
 }