Пример #1
0
        void Start()
        {
            //Get all checkpoints of scene
            m_Checkpoints = GameObject.FindObjectsOfType(typeof(CheckPoint)) as CheckPoint[];

            foreach (AnimationClip clip in m_Animator.runtimeAnimatorController.animationClips)
            {
                m_AnimationClipsLength.Add(clip.name, clip.length);
            }

            m_CameraController = CameraController.Instance;
        }
 void Awake()
 {
     Instance = this;
 }