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;
		};
	}
Example #3
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 #4
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;
        };
    }