Advertisement
WaterChicken

Untitled

Jul 24th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class GameController : MonoBehaviour {
  5.  
  6.     public static GameController instance;
  7.     public Color primaryColor;
  8.  
  9.     private long minimumMemory = 0;
  10.     private long maximumMemory = 0;
  11.  
  12.     void Awake() {
  13.         if (instance == null) {
  14.             instance = this;
  15.             DontDestroyOnLoad (gameObject);
  16.         } else {
  17.             DestroyImmediate (gameObject);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement