public Spirit(Entity entity) { this.entity = entity; this.light = new SpiritStats(); this.neutral = new SpiritStats(); this.darkness = new SpiritStats(); }
public void AddMember(BaseSpirit bs) { this.SName = bs.SName; this.image = bs.image; this.biomeFound = bs.biomeFound; this.type1 = bs.type1; this.type2 = bs.type2; this.rarity = bs.rarity; this.HP = bs.HP; this.maxHP = bs.maxHP; //this.AttStat = bs.AttStat; // this.DefStat = bs.DefStat; this.spiritStats = bs.spiritStats; this.canAscend = bs.canAscend; this.AscendTo = bs.AscendTo; this.level = bs.level; }
public void SetSpirit(GameObject gameObj) { m_Spirit = gameObj; m_SpiritStats = m_Spirit.GetComponent <SpiritStats>(); }
void UpdateStats() { lastStats = stats; stats = spirit.CurrentStats(); if (stats != null) { // Update level var powerRatio = stats.power / stats.exp; if (powerRatio != lastPowerRatio) { level.transform.localScale = new Vector3(powerRatio, 1, 1); lastChangedAt = Time.time; } lastPowerRatio = powerRatio; } }
void Start() { m_SpiritStats = m_Spirit.GetComponent <SpiritStats>(); UpdateBodyInfo(); }