-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
james7132
committed
Jun 4, 2015
1 parent
5e565bb
commit a8239e9
Showing
6 changed files
with
216 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2015 James Liu | ||
// | ||
// See the LISCENSE file for copying permission. | ||
|
||
using UnityEngine; | ||
using DanmakU; | ||
using DanmakU.Modifiers; | ||
|
||
public class SourceTest : MonoBehaviour { | ||
|
||
[SerializeField] | ||
private FrameCounter delay; | ||
|
||
[SerializeField] | ||
private DanmakuPrefab prefab; | ||
|
||
[SerializeField] | ||
private CircularBurstModifier circleBurst; | ||
|
||
[SerializeField] | ||
private LinearBurstModifier lineBurst; | ||
|
||
void Update() { | ||
if(delay.Tick()) { | ||
Danmaku.ConstructFire(prefab) | ||
.WithModifier(circleBurst) | ||
.WithModifier(lineBurst) | ||
.From(this) | ||
.WithRotation(this) | ||
.Fire(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters