Exemplo n.º 1
0
 void Start()
 {
     scriptRef    = levelManager.GetComponent <CurrentLevelManager>();
     lineRends    = GetComponentsInChildren <LineRenderer>();
     childrenRend = GetComponentsInChildren <SpriteRenderer>();
     foreach (LineRenderer test in lineRends)
     {
         test.startColor = ColorThemes.objectColor;
         test.endColor   = ColorThemes.objectColor;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     main = this;
 }