// Use this for initialization void Start() { levelRestart = GameObject.FindGameObjectWithTag("Holder of scripts").GetComponent <LevelRestart>(); player = GameObject.FindGameObjectWithTag("Player"); lookAtMe = player.transform.GetChild(0); transform.position = player.transform.position - posDiff; }
public static void CallLevelRestart() { LevelRestart?.Invoke(); }