Ejemplo n.º 1
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     liner = GetComponent <LineRenderer> ();
     BeatScheduler.ScheduleNextMeasure(new StartTrackEvent(track));
     soundpicker = new SoundRandomizer(audioSource, shootingSounds);
 }
Ejemplo n.º 2
0
    void IEnemyInitiator.triggerStart()
    {
        BeatTracker track = attackscript.GetTrack();

        if (track != null)
        {
            BeatScheduler.ScheduleNextMeasure(new StartTrackEvent(track));
        }
    }
Ejemplo n.º 3
0
    void IEnemyInitiator.triggerStart()
    {
        GameObject inst = GameObject.Instantiate(spawnPrefab, spawnLocation.position, spawnLocation.rotation) as GameObject;

        if (startTrack)
        {
            AbstractEnemyAttack attackscript = inst.GetComponent <AbstractEnemyAttack> ();
            if (attackscript != null)
            {
                BeatTracker track = attackscript.GetTrack();
                if (track != null)
                {
                    BeatScheduler.ScheduleNextMeasure(new StartTrackEvent(track));
                }
            }
        }
    }
Ejemplo n.º 4
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     BeatScheduler.ScheduleNextMeasure(new StartTrackEvent(track));
 }