// Use this for initialization void Start() { restartPointsManager = GameObject.Find("Manager").GetComponent <RestartPointsManager>();//na wstępie znajdź i pobierz ten komponent z Managera if (restartPointsManager == null) { Debug.LogError("RestartPointsManager nie został znaleziony."); } }
// Use this for initialization void Start() { _restartPointsManager = GameObject.Find("Manager").GetComponent <RestartPointsManager>(); if (_restartPointsManager == null) { Debug.LogError("RestartpointsManager not found."); } _sprRenderer = GetComponent <SpriteRenderer>(); }
// Use this for initialization void Start() { restartPointsManager = GameObject.Find("Manager").GetComponent <RestartPointsManager>(); if (restartPointsManager == null) { Debug.LogError("RestartPointsManager nie został znaleziony"); } sprRenderer = GetComponent <SpriteRenderer>(); }