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; }; }
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; }; }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }