CheckpointClass.Checkpoint.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
        void Start()
        {
            _checkpointData.SpawnLocation = GetComponentInChildren<Transform>().position;
            _player = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerStats>();
            _spiritGun = GameObject.Find("Gun").GetComponent<SpiritGun>();

            _checkpointData.SpawnLocation = transform.GetChild(0).transform.position;

            EventManager.AddListener((int) GameManagerScript.GameEvents.LoadlastCheckpoint, OnLoadLastCheckpoint);
        }