示例#1
0
 // 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.");
     }
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     _restartPointsManager = GameObject.Find("Manager").GetComponent <RestartPointsManager>();
     if (_restartPointsManager == null)
     {
         Debug.LogError("RestartpointsManager  not found.");
     }
     _sprRenderer = GetComponent <SpriteRenderer>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     restartPointsManager = GameObject.Find("Manager").GetComponent <RestartPointsManager>();
     if (restartPointsManager == null)
     {
         Debug.LogError("RestartPointsManager nie został znaleziony");
     }
     sprRenderer = GetComponent <SpriteRenderer>();
 }