Example #1
0
        private void LateUpdate()
        {
            logo.transform.position = UiHelper.ScreenToWorldPoint(logoPlaceholder.position);

            if (Input.GetKeyDown(KeyCode.Escape))
            {
                GameManager.QuitGame();
            }
        }
        private void Awake()
        {
            Canvas.ForceUpdateCanvases();
            rectTransform = GetComponent <RectTransform>();
            className     = name;
            CharStatsInfo classInfo = CharStatsInfo.Find(className);

            dummy = CreateDummy(classInfo);
            dummy.transform.position = UiHelper.ScreenToWorldPoint(rectTransform.position);
            dummyAnimator            = dummy.GetComponent <COFAnimator>();
            dummyAnimator.cof        = GetCof(classInfo, "TN");
        }
 void LateUpdate()
 {
     dummy.transform.position = UiHelper.ScreenToWorldPoint(rectTransform.position);
 }