예제 #1
0
        /// <summary>
        /// Get the pointer graphic objects, the main camera, the animator, and the main view system.
        /// Disable the graphics for the pointer.
        /// </summary>
        public void Awake()
        {
#if UNITY_MODULES_AUDIO
            Find.Any(out interaction);
#endif
            pointer  = transform.Find("Pointer");
            arrow    = pointer.Find("Tag");
            tagRange = arrow.localPosition;
            image    = transform.Find("Image");
#if UNITY_MODULES_ANIMATION
            animator = this.Ensure <UnityAnimator>();
#endif

            pointer.SetActive(false);
            image.SetActive(false);
        }
예제 #2
0
 private void Awake()
 {
     animator = AbstractAnimator.GetAnimator(gameObject, PART_NAMES);
 }