Liberi
An exergame built for kids with CP!
Persona.cs
1 using UnityEngine;
2 using System;
3 using System.Linq;
4 
8 [Serializable]
9 public class Persona
10 {
11  public float SkillChargeTime
12  {
13  get
14  {
15  if (SkillChargeTimeReductionTrait != null)
16  return BaseSkillChargeTime * (1 + SkillChargeTimeReductionTrait.FinalPercentage);
17  else return BaseSkillChargeTime;
18  }
19  }
20 
24  public string ID;
28  public float BaseSkillChargeTime = 3f;
32  public bool AutoFireSkill = false;
36  [NonSerialized]
38  [NonSerialized]
39  public CharacterTrait SkillChargeTimeReductionTrait;
40 }
string ID
String ID of the persona.
Definition: Persona.cs:24
float BaseSkillChargeTime
The minimum amount of pedaling time between successive uses of this skill.
Definition: Persona.cs:28
(Deprecated) Descibes a trait for a character.
bool AutoFireSkill
Whether or not the avatar should auto-fire its skill in this persona.
Definition: Persona.cs:32
Character Character
The character that has this persona.
Definition: Persona.cs:37
Avatar character management component. In charge of personas, skills and buffs.
Definition: Character.cs:12
Descibes a persona for an avatar character.
Definition: Persona.cs:9