Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class BallVictoryTriggerer : MonoBehaviour {
- void OnEnable () {
- }
- void OnDisable () {
- GameManager.OnGameEndingTriggered -= Asdf;
- }
- void Update () {
- if (Input.GetKeyDown(KeyCode.Space)) {
- GameManager.OnGameEndingTriggered += Asdf;
- print("bola avisándole a game manager");
- GameManager.TriggerVictory();
- }
- }
- public void Asdf (GameMode mode) {
- print(mode + "!!!!!!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement