예제 #1
0
 private void Awake()
 {
     if (SceneRefs.IsSet <VirtualJoystick>())
     {
         SceneRefs.Remove(SceneRefs.Get <VirtualJoystick>());
     }
     SceneRefs.Set(this);
     joystick     = GetComponent <RectTransform>();
     joystickBase = base.transform.GetChild(0).GetComponent <RectTransform>();
     joystickPad  = base.transform.GetChild(0).GetChild(0).GetComponent <RectTransform>();
     dispatcher   = Service.Get <EventDispatcher>();
 }
 private void Awake()
 {
     prefabCacheTracker = base.gameObject.AddComponent <PrefabCacheTracker>();
     SceneRefs.Set(prefabCacheTracker);
 }