/// <summary> /// Called by SkillModule /// </summary> /// <param name="unit"></param> public void SetUnit(Unit unit) { this.unit = unit; this.unitychan = (unit is UnityChan) ? unit as UnityChan : null; Ready(); }
public override void OnInit() { base.OnInit(); this.unitychan = this.unit as UnityChan; }
protected override void Awake() { base.Awake(); this.unityChan = this.unit as UnityChan; }