コード例 #1
0
ファイル: DeathController.cs プロジェクト: fafase/Catharsis
	protected void OnDeath(CatDeathEventArg arg)
	{
		if (RaiseDeath != null) {
			RaiseDeath(this, arg);
		}
	}
コード例 #2
0
ファイル: CatController.cs プロジェクト: fafase/Catharsis
    private void ResetOnDeath(object sender, CatDeathEventArg arg)
    {
        catMoveRef.ResetOnDeath();
        int life = catHealth.DecreaseHealth();
		this.catDeath = arg.catDeath;
        if (life >= 0)
        {
            ChangeCurrentState(CatState.Reset);
        }
        else
        {
			this.gameHandler.RequestStateHandler(GameState.GameLost);
        }
    }