title: Unity 2D: Making the Player Gameobject Reactivate after being turned off
body: <p>I can't get the Player Gameobject to reappear. The player deactivates the moment the Timeline starts when they touch the box collider, but the player never reactivates. I have tried using Player.SetActive(true) in the coroutine and even using an Invoke method with no luck. Any ideas on how to fix this? Please help.</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.Playables;
  
  public class TimelineTrigger : MonoBehaviour
  {
      // calling items for Unity
      public PlayableDirector timeline;
      public GameObject Player;
      public GameObject CutsceneCollider;
      public GameObject CutsceneMC;
  
      // Start is called before the first frame update
      void Start()
      {
          // calls the playable director and turns off the MC for the scene
          timeline = timeline.GetComponent&lt;PlayableDirector&gt;();
          CutsceneMC.SetActive(false);
      }
  
      void Update()
      {
          Player = GameObject.FindGameObjectWithTag(&quot;Player&quot;);
      }
  
      private void EnableAfterTimeline()
      {
          Player = GameObject.FindGameObjectWithTag(&quot;Player&quot;);
          Player.SetActive(true);
      }
  
      public void OnTriggerEnter2D (Collider2D col)
      {
          if (col.CompareTag(&quot;Player&quot;))
          {
              // plays the cutscene and starts the timer
              timeline.Play();
              Player.SetActive(false);
              Invoke(&quot;EnableAfterTimeline&quot;, 18);
              CutsceneMC.SetActive(true);
              StartCoroutine(FinishCut());
          }
  
          IEnumerator FinishCut()
          {
              // once the cutscene is over using the duration, turns off the collider and the MC.
              yield return new WaitForSeconds(17);
              CutsceneMC.SetActive(false);
              CutsceneCollider.SetActive(false);
          }
      }
  }
  </code></pre>