public Caravel_Plating(CaravelInterface newShip) : base(newShip) { //currently uses new keyword, but because Plating is a unity MonoBehavior, throws console a warning (not sure how to fix) Plating newPlates = new Plating(); newPlates.AddPlating(); }
public bool CreatePlating(PlatingCreate model) { var entity = new Plating() { AuthorID = userId, Name = model.Name, Description = model.Description, DateCreated = DateTimeOffset.UtcNow, }; using (var context = new CookbookContext()) { context.Platings.Add(entity); return(context.SaveChanges() == 1); } }
// Use this for initialization void Start() { plating_value = transform.parent.gameObject.GetComponent <Plating>(); enemy_check = transform.parent.gameObject.GetComponent <StandardStatBlock>().ENEMY; }