예제 #1
0
        public static Entity CreateProduce(Vector2Int position, Crop.Kind kind)
        {
            var ent = CreateEntity("Produce", position);

            ent.AddComponent <Produce>().kind             = kind;
            ent.GetComponent <Renderer>().symbol          = Crop.SymbolFor(kind)[1];
            ent.GetComponent <Renderer>().foregroundColor = Crop.ColorFor(kind);
            return(ent);
        }