private void Awake() { this.tag = "HittableObject"; nodePlaneTeleportation = FindObjectOfType <NodePlaneTeleportation>(); soundManager = FindObjectOfType <SoundManager>(); scoreManager = FindObjectOfType <ScoreManager>(); }
// Start is called before the first frame update void Start() { tm = this.GetComponent <TimerManager>(); //fUIe = UIElementToFade.GetComponent<FadeUIElement>(); npt = Player.GetComponent <NodePlaneTeleportation>(); tm.TimerRunDown += OnTimerRunDown; //fUIe.FadeInComplete += OnFadeInComplete; //fUIe.FadeOutComplete += OnFadeOutComplete; }