Exemplo n.º 1
0
 public TraitContext Adjust(TraitContext context)
 {
     return(new TraitContext()
     {
         barrier = true,
         opaque = false,
     });
 }
Exemplo n.º 2
0
        public TraitContext Adjust(TraitContext context)
        {
            var data = trait.Adjust(context);

            barrier.SetActive(data.barrier);
            this.context.gameObject.SetActive(context.visible);
            context.visible = context.visible && !data.opaque;
            return(context);
        }