Example #1
0
    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;
        };
    }
Example #2
0
	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> ();
	}
Example #4
0
 // Use this for initialization
 void Start()
 {
     sc = GameObject.Find("SpawnController");
     bc = sc.GetComponent <SpawnMarbles> ().ballChain;
     temp_ballstobeChanged = ballsToBeChanged;
     villain = GameObject.Find("JamODrum")
               .GetComponent <VillainController> ();
 }
Example #5
0
	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];
	}
Example #6
0
 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];
 }
Example #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);
		}
	}
Example #8
0
	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;
		};
	}
Example #9
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);
        }
    }
Example #10
0
    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;
        };
    }