Example #1
0
        /// <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();
        }
Example #2
0
        public override void OnInit()
        {
            base.OnInit();

            this.unitychan = this.unit as UnityChan;
        }
Example #3
0
 protected override void Awake()
 {
     base.Awake();
     this.unityChan = this.unit as UnityChan;
 }