Пример #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;
		};
	}
Пример #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;
        };
    }
Пример #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);
		}
	}
Пример #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);
        }
    }
Пример #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);
		}
	}
Пример #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);
		}
	}
Пример #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);
        }
    }
Пример #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);
        }
    }