Ejemplo n.º 1
0
 private void Awake()
 {
     scs       = GetComponent <SpriteColorShift>();
     scsInner  = innerImage.GetComponent <SpriteColorShift>();
     thisImage = GetComponent <Image>();
     button    = GetComponent <Button>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (sr == null)
     {
         sr = GameObject.Find("BattleSetup").GetComponent <SetupRouter>();
     }
     button       = GetComponent <Button>();
     scs          = GetComponent <SpriteColorShift>();
     image        = GetComponent <Image>();
     defaultColor = image.color;
 }