Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     tilemap            = GameObject.Find("Tilemap").GetComponent <Tilemap>();
     spawnBulletScript  = ScriptableObject.CreateInstance <SpawnBullet>();
     waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>();
     checkModeScript    = ScriptableObject.CreateInstance <ModeHandler>();
     endGameScript      = ScriptableObject.CreateInstance <EndGame>();
     mouseUp            = false;
 }
Exemplo n.º 2
0
 public BulletSpawner(SpawnBullet spawningDelegate, BulletGroup spawnTarget, float howOften)
     : base()
 {
     _spawningDelegate = spawningDelegate;
     SpawnTarget       = spawnTarget;
     HowOften          = howOften;
     LifeTime          = 0;
     bufferTime        = 0;
     BulletsSpawned    = 0;
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     spawnBulletScript = ScriptableObject.CreateInstance <SpawnBullet>();
 }
Exemplo n.º 4
0
 private void Awake()
 {
     instance = this;
 }