Пример #1
0
        private bool checkpointSet = false; // Keeps track of if a checkpoint has been set, because there would be no need to reset it afterwards.

        // Start is called before the first frame update
        void Start() // Gets the camera and player movement components.
        {
            cam      = GameObject.FindGameObjectWithTag("MainCamera");
            player   = GameObject.FindGameObjectWithTag("Player");
            movement = player.GetComponent <PlayerMovement>();
        }