コード例 #1
0
        public LeaveTransitionWorldMapAgent(GDWorldMapScreen scrn, bool slower, WarpNode node, GraphBlueprint target) : base(scrn, slower ? DURATION_SLOW : DURATION)
        {
            _gdScreen = scrn;
            _node     = node;
            _target   = target;
            vp        = scrn.VAdapterGame;

            rectStart = scrn.GuaranteedMapViewport;

            rectFinal = node.DrawingBoundingRect.AsResized(0.5f, 0.5f);
        }
コード例 #2
0
ファイル: WarpNode.cs プロジェクト: ipud2/csg-toolkit
    public override Node Create(Vector2 pos)
    {
        WarpNode node = CreateInstance <WarpNode> ();

        node.rect = new Rect(pos.x, pos.y, 200, 100);
        node.name = "Warp Node";

        node.CreateInput("In Obj", "GameObject");
        node.CreateOutput("Out Obj", "GameObject");

        return(node);
    }
コード例 #3
0
 public LeaveTransitionWorldMapOperation(bool slower, WarpNode node, GraphBlueprint target) : base(slower ? DURATION_SLOW : DURATION)
 {
     _node   = node;
     _target = target;
 }