Пример #1
0
    public override void destroyState()
    {
        _unitMaster.removeObserver((IUnitCollisionObserver) this);
        _unitMaster = null;

        base.destroyState();
    }
Пример #2
0
 public UnitStateMove(UnitMasterBase unitMaster, Vector3 positionEnd)
 {
     _unitMaster = unitMaster;
     _positionEnd = positionEnd;
 }
 public UnitStateFollowTheMaster(UnitMasterBase unitMaster)
 {
     _unitMaster = unitMaster;
 }