示例#1
0
 void Awake()
 {
     MainCamera = MTools.FindMainCamera();
     if (TextUI == null)
     {
         TextUI = GetComponent <Text>();
     }
     ScreenCenter        = transform.position;
     DefaultScreenCenter = transform.position;
 }
示例#2
0
 private void OnEnable()
 {
     MainCamera = MTools.FindMainCamera();
     Align();
 }
示例#3
0
 void Awake()
 {
     MainCamera          = MTools.FindMainCamera();
     ScreenCenter        = transform.position;
     DefaultScreenCenter = transform.position;
 }