Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4.  
  5. public class BallVictoryTriggerer : MonoBehaviour {
  6. void OnEnable () {
  7. }
  8.  
  9. void OnDisable () {
  10. GameManager.OnGameEndingTriggered -= Asdf;
  11. }
  12.  
  13. void Update () {
  14. if (Input.GetKeyDown(KeyCode.Space)) {
  15. GameManager.OnGameEndingTriggered += Asdf;
  16. print("bola avisándole a game manager");
  17. GameManager.TriggerVictory();
  18. }
  19. }
  20.  
  21. public void Asdf (GameMode mode) {
  22. print(mode + "!!!!!!");
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement