SHARE
TWEET

EventManager.cs

a guest Aug 6th, 2016 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. public class EventManager : MonoBehaviour
  4. {
  5.     //end of day event
  6.     public delegate void EndOfDay();
  7.     public static event EndOfDay EndOfDayMethods;
  8.  
  9.     //sun rotation event
  10.  
  11.     public delegate void Sun();
  12.     public static event Sun SunRotationMethods;
  13.  
  14.     public static void ResetDay()
  15.     {
  16.         EndOfDayMethods();
  17.     }
  18.  
  19.     public static void RotateSun()
  20.     {
  21.         SunRotationMethods();
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top