void Awake() { chainMovement = GetComponent <ChainMovement>(); gameController = GameObject.Find("GameController") .GetComponent <GameController> (); villain = GameObject.Find("JamODrum") .GetComponent <VillainController>(); villain.RegisterMagicStartAction(() => { forwardPercentagePerSecond *= 0.02f; spawnInterval *= 50f; }); villain.RegisterMagicEndAction(() => { forwardPercentagePerSecond *= 50f; spawnInterval *= 0.02f; }); gameController.OnGameStart += () => { spawnLock = false; }; gameController.OnVillainWin += () => { spawnLock = true; }; gameController.OnHeroWin += () => { spawnLock = true; }; }
void Awake () { chainMovement = GetComponent<ChainMovement>(); gameController = GameObject.Find ("GameController") .GetComponent<GameController> (); villain = GameObject.Find ("JamODrum") .GetComponent<VillainController>(); villain.RegisterMagicStartAction (() => { forwardPercentagePerSecond *= 0.02f; spawnInterval *= 50f; }); villain.RegisterMagicEndAction (() => { forwardPercentagePerSecond *= 50f; spawnInterval *= 0.02f; }); gameController.OnGameStart += () => { spawnLock = false; }; gameController.OnVillainWin += () => { spawnLock = true; }; gameController.OnHeroWin += () => { spawnLock = true; }; }
// Use this for initialization void Start () { sc = GameObject.Find ("SpawnController"); bc = sc.GetComponent<SpawnMarbles> ().ballChain; temp_ballstobeChanged = ballsToBeChanged; villain = GameObject.Find ("JamODrum") .GetComponent<VillainController> (); }
// Use this for initialization void Start() { sc = GameObject.Find("SpawnController"); bc = sc.GetComponent <SpawnMarbles> ().ballChain; temp_ballstobeChanged = ballsToBeChanged; villain = GameObject.Find("JamODrum") .GetComponent <VillainController> (); }
void Start () { jod = GameObject.Find ("JamODrum"); sc = GameObject.Find ("SpawnController"); bc = sc.GetComponent<SpawnMarbles> ().ballChain; AudioSource[] aud = GetComponents<AudioSource> (); vc = jod.GetComponent<VillainController> (); aud1 = aud [0]; aud2 = aud [1]; aud3 = aud [2]; }
void Start() { jod = GameObject.Find("JamODrum"); sc = GameObject.Find("SpawnController"); bc = sc.GetComponent <SpawnMarbles> ().ballChain; AudioSource[] aud = GetComponents <AudioSource> (); vc = jod.GetComponent <VillainController> (); aud1 = aud [0]; aud2 = aud [1]; aud3 = aud [2]; }
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 () { villain = GameObject.Find ("JamODrum") .GetComponent<VillainController>(); villain.RegisterMagicStartAction (() => { percentPerSecond *= 0.02f; }); villain.RegisterMagicEndAction (() => { percentPerSecond *= 50f; }); gameController = GameObject.Find ("GameController") .GetComponent<GameController>(); gameController.OnVillainWin += () => { moveLock = true; }; gameController.OnHeroWin += () => { moveLock = true; }; }
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() { villain = GameObject.Find("JamODrum") .GetComponent <VillainController>(); villain.RegisterMagicStartAction(() => { percentPerSecond *= 0.02f; }); villain.RegisterMagicEndAction(() => { percentPerSecond *= 50f; }); gameController = GameObject.Find("GameController") .GetComponent <GameController>(); gameController.OnVillainWin += () => { moveLock = true; }; gameController.OnHeroWin += () => { moveLock = true; }; }