コード例 #1
0
    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();
    }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     plating_value = transform.parent.gameObject.GetComponent <Plating>();
     enemy_check   = transform.parent.gameObject.GetComponent <StandardStatBlock>().ENEMY;
 }