Ejemplo n.º 1
0
    private void Awake()
    {
        ps          = GetComponentsInChildren <ParticleSystem>();
        springyMove = GetComponent <SpringyMove>();
        Color      color = ColorSchema.GetColor(itemColor);
        GameObject child = transform.GetChild(0).gameObject;

        child.GetComponent <Renderer>().material.color = color;
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        int randomNumber = rnd.Next(ColorSchema.standardColors.Length);

        itemColor   = ColorSchema.standardColors[randomNumber];
        ps          = GetComponentsInChildren <ParticleSystem>();
        springyMove = GetComponent <SpringyMove>();
        Color      color = ColorSchema.GetColor(itemColor);
        GameObject child = transform.GetChild(0).gameObject;

        child.GetComponent <Renderer>().material.color = color;
    }
Ejemplo n.º 3
0
 private void Start()
 {
     text        = GetComponent <Text>();
     springyMove = GetComponent <SpringyMove>();
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     springyMove = GetComponent <SpringyMove>();
 }