예제 #1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     _sharedMemory  = SharedMemory.Instance;
     _memory        = GetComponent <Memory>();
     _classFeatures = GetComponent <ClassFeatures>();
 }