コード例 #1
0
    public static Forja[][] FactoryList()
    {
        Forja[][] forja = new Forja[ElementosEnum.elemento_1.CountElements()][];
        int       index = 0;

        foreach (var runaarray in forja)
        {
            forja[index] = new Forja[Forja_por_elemento];

            for (int i = 0; i < Forja_por_elemento; i++)
            {
                forja[index][i] = new Forja()
                {
                    Name     = ("Forja [" + i + "]"),
                    Dannio   = 0,
                    Curacion = 0,
                    Efecto   = 0
                };
            }


            index++;
        }


        return(forja);
    }
コード例 #2
0
 void Awake()
 {
     Go_UIScript._Go_UIScript = this;
     runas  = Runa.FactoryList();
     forjas = Forja.FactoryList();
 }