Example #1
0
 public LinkAnimate(cca.Animation animation, Animate.Function onSpecial, UnitNode from, UnitNode to)
     : base(animation, onSpecial)
 {
     m_fromToType = Projectile.FromToType.kUnitToUnit;
     m_from.Set(from.GetComponent <Unit>());
     m_to.Set(to.GetComponent <Unit>());
 }
Example #2
0
    public MoveToNode(float duration, UnitNode node, bool fixRotation = true, float maxHeightDelta = 0.0f)
        : base(duration)
    {
        _eToType = kTypeUnit;
        _unit.Set(node.GetComponent <Unit>());

        _bFixRotation    = fixRotation;
        _fMaxHeightDelta = maxHeightDelta;
        _fMinSpeed       = 0;
    }