Example #1
0
    private void Awake()
    {
        this.tag = "HittableObject";

        nodePlaneTeleportation = FindObjectOfType <NodePlaneTeleportation>();
        soundManager           = FindObjectOfType <SoundManager>();
        scoreManager           = FindObjectOfType <ScoreManager>();
    }
Example #2
0
    // 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;
    }