Ejemplo n.º 1
0
	void Awake () {
		jod = GetComponent<JamoDrum> ();
		jodkey = GetComponent<JamoDrumKeyVersion> ();
		launcher = GetComponent<SingleLauncher> ();
		platform = GameObject.Find("TracingPanel")
			.GetComponent<TracingPanel>();
		spawn = GameObject.FindGameObjectWithTag("SpawnController")
			.GetComponent<SpawnMarbles>();
		soundManager = GameObject.Find ("SoundManager")
			.GetComponent<SoundManagerScript>();

		if (launcher.key) {
			jodkey.AddHitEvent(HitHandler);
			jodkey.AddSpinEvent(SpinHandler);
		}
		else {
			jod.AddHitEvent(HitHandler);
			jod.AddSpinEvent(SpinHandler);
		}

		stateStartAction = () => {
			stateTimer = 0f;
			heroTapSum = 0;
			heroSpinSum = 0;
		};
	}
Ejemplo n.º 2
0
    void Awake()
    {
        jod      = GetComponent <JamoDrum> ();
        jodkey   = GetComponent <JamoDrumKeyVersion> ();
        launcher = GetComponent <SingleLauncher> ();
        platform = GameObject.Find("TracingPanel")
                   .GetComponent <TracingPanel>();
        spawn = GameObject.FindGameObjectWithTag("SpawnController")
                .GetComponent <SpawnMarbles>();
        soundManager = GameObject.Find("SoundManager")
                       .GetComponent <SoundManagerScript>();

        if (launcher.key)
        {
            jodkey.AddHitEvent(HitHandler);
            jodkey.AddSpinEvent(SpinHandler);
        }
        else
        {
            jod.AddHitEvent(HitHandler);
            jod.AddSpinEvent(SpinHandler);
        }

        stateStartAction = () => {
            stateTimer  = 0f;
            heroTapSum  = 0;
            heroSpinSum = 0;
        };
    }
Ejemplo n.º 3
0
	void Awake () {
		jod = GameObject.Find ("JamODrum").GetComponent<JamoDrum>();
		jodkey = GameObject.Find ("JamODrum").GetComponent<JamoDrumKeyVersion>();

		if (key) {
			jodkey.AddHitEvent(HitHandler);
			jodkey.AddSpinEvent(SpinHandler);
		}
		else {
			jod.AddHitEvent(HitHandler);
			jod.AddSpinEvent(SpinHandler);
		}
	}
Ejemplo n.º 4
0
    void Awake()
    {
        jod    = GameObject.Find("JamODrum").GetComponent <JamoDrum>();
        jodkey = GameObject.Find("JamODrum").GetComponent <JamoDrumKeyVersion>();

        if (key)
        {
            jodkey.AddHitEvent(HitHandler);
            jodkey.AddSpinEvent(SpinHandler);
        }
        else
        {
            jod.AddHitEvent(HitHandler);
            jod.AddSpinEvent(SpinHandler);
        }
    }
Ejemplo n.º 5
0
	void Awake () {
		gameController = GameObject.Find ("GameController")
			.GetComponent<GameController>();

		jod = GameObject.Find ("JamODrum").GetComponent<JamoDrum> ();
		jodkey = GameObject.Find ("JamODrum").GetComponent<JamoDrumKeyVersion> ();
		launcher = GameObject.Find ("JamODrum").GetComponent<SingleLauncher> ();

		if (launcher.key) {
			jodkey.AddHitEvent(HitHandler);
			//jodkey.AddSpinEvent(SpinHandler);
		}
		else {
			jod.AddHitEvent(HitHandler);
			//jod.AddSpinEvent(SpinHandler);
		}
	}
Ejemplo n.º 6
0
	void Awake () {
		jod = GetComponent<JamoDrum>();
		jodkey = GetComponent<JamoDrumKeyVersion>();
		villainController = GetComponent<VillainController>();
		villainController.RegisterMagicEndAction(ResetAllSpinners);
		villainController.RegisterMagicEndAction(UnlockAllDrums);
		//villainController.RegisterMagicEndAction(UnlockAllCannons);

		if (key) {
			jodkey.AddHitEvent(HitHandler);
			jodkey.AddSpinEvent(SpinHandler);
		}
		else {
			jod.AddHitEvent(HitHandler);
			jod.AddSpinEvent(SpinHandler);
		}
	}
Ejemplo n.º 7
0
    void Awake()
    {
        jod               = GetComponent <JamoDrum>();
        jodkey            = GetComponent <JamoDrumKeyVersion>();
        villainController = GetComponent <VillainController>();
        villainController.RegisterMagicEndAction(ResetAllSpinners);
        villainController.RegisterMagicEndAction(UnlockAllDrums);
        //villainController.RegisterMagicEndAction(UnlockAllCannons);

        if (key)
        {
            jodkey.AddHitEvent(HitHandler);
            jodkey.AddSpinEvent(SpinHandler);
        }
        else
        {
            jod.AddHitEvent(HitHandler);
            jod.AddSpinEvent(SpinHandler);
        }
    }
Ejemplo n.º 8
0
    void Awake()
    {
        gameController = GameObject.Find("GameController")
                         .GetComponent <GameController>();

        jod      = GameObject.Find("JamODrum").GetComponent <JamoDrum> ();
        jodkey   = GameObject.Find("JamODrum").GetComponent <JamoDrumKeyVersion> ();
        launcher = GameObject.Find("JamODrum").GetComponent <SingleLauncher> ();

        if (launcher.key)
        {
            jodkey.AddHitEvent(HitHandler);
            //jodkey.AddSpinEvent(SpinHandler);
        }
        else
        {
            jod.AddHitEvent(HitHandler);
            //jod.AddSpinEvent(SpinHandler);
        }
    }