Exemplo n.º 1
0
    void Awake()
    {
        garland = GetComponent <Garland>();

        currentColors = lightColors.Select(x => (Color32)x).ToArray();
        garland.SetColors(currentColors);
    }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var stuffedToys = new StuffedToys(18, 2, 7, "star", "male", 1);
            var lights      = new Lights(-5, 5, 3, 1, 1, 1);
            var garland     = new Garland(9999, 1, 6, 1, 1, "1");

            ArrayList arrayList = new ArrayList();

            arrayList.Add(stuffedToys);
            arrayList.Add(lights);
            arrayList.Add(garland);
            arrayList.Sort(new SizeComparatorToLower());
            foreach (var VARIABLE in arrayList)
            {
                Console.WriteLine(VARIABLE);
            }
        }