public override void Awake() { base.Awake(); stats.Add(new Dictionary <string, object>() { ["topSpeedNormal"] = 6F, ["topSpeedSpeedUp"] = 12F, ["topSpeed"] = (Func <string>)(() => HasEffect("speedUp") ? "topSpeedSpeedUp" : "topSpeedNormal"), ["terminalSpeed"] = 16.5F }); LevelManager.current.characters.Add(this); playerId = LevelManager.current.GetFreePlayerId(); input = new InputCustom(1); InitReferences(); Level levelDefault = FindObjectOfType <Level>(); if (currentLevel == null) { currentLevel = levelDefault; respawnData.position = levelDefault.spawnPosition; Respawn(); } if (GlobalOptions.GetBool("tinyMode")) { sizeScale = 0.5F; } }
//takes in a struct that specifies skill type, executes skill //for now only takes characterstats public void Use(CharacterStats stats, CharacterStats targ) { targ.Add(stats); }