コード例 #1
0
        public Unit(int x, int y, UnitType type)
        {
            X      = x;
            Y      = y;
            stats  = type.GetAttribute <UnitAttr>();
            HP     = stats.MaxHP;
            STM    = stats.STM;
            MS     = stats.MS;
            ATKSP  = stats.ATKSP;
            height = GetHeight();
            Type   = type;
            Random rand = new Random();

            currentTick += rand.Next(1, 20);
        }