title: How to resolve errors CS1003: Syntax error, '(' expected, and error CS1031: Type expected?
body: <p>I am creating a 2d platform game in the Unity Engine Version Num - 2018.4.9f1 with c# compiled with Visual Studio Version Num - 1.38.1.</p>
  
  <p>The console in Unity Engine is showing two errors listed below with the code I have in the Visual Studio.</p>
  
  <blockquote>
    <p>error CS1003: Syntax error, '(' expected</p>
    
    <p>error CS1031: Type expected</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  
  [RequireComponent(typeof)(Text))]
  public class CountdownText : MonoBehaviour {
  
      public delegate void CountdownFinished();
      public static event CountdownFinished OnCountdownFinished;
  
      Text countdown;
  
      void OnEnable() {
          countdown = GetComponent&lt;Text&gt;();
          countdown.text = "3";
          StartCoroutine("Countdown");
      }
  
      IEnumerator Countdown() {
          int count = 3;
          for (int i = 0; i &lt; count; i++) {
              countdown.text = (count - i).ToString();
              yield return new WaitForSeconds(1);
          }
  
          OnCountdownFinished();
      }
  }
  </code></pre>