public AttributesPlugin(SiteObject site) : base(site) { var attributesObject = new AttributesObject(); Site.Scripts.Builtins.SetValue("attributes", attributesObject, true); Site.Content.BeforeLoadingContentProcessors.Add(attributesObject.ProcessAttributesForPath); }
// Use this for initialization void Start() { PlayerAttributesScriptableObject = PossibleClassTypes[(int)playerType]; PlayerAttributes = new Attributes(); PlayerAttributesScriptableObject.Initialize(PlayerAttributes); GameManager.Instance.RegisterPlayer(gameObject, isLocalPlayer); InitAvatar(); }
public PlayerAttributes(AttributesObject attribute, float value) { this.attribute = attribute; this.value = value; }
public void UnModifyAttributes(AttributesObject modification) { modification.UnModify(PlayerAttributes); }
public void ModifyAttributes(AttributesObject modification) { CmdModify(modification.attributes); }