This is the line where I am getting above mentioned error:
var listeners = FindObjectOfType<MonoBehaviour> ().OfType<iPlayerRespawnListener> ();
I have already imported these libraries including
System.Linq which has the above mentioned method
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; using System;
Where is it going wrong and how to fix this?