private LinearFixedPath fixture()
 {
     curve = new FakeCurve {duration = 5f, elapsed = 0f};
     origin = this.SpawnBlank();
     target = this.SpawnBlank();
     mobile = this.SpawnBlank();
     mobile.transform.position = new Vector3(0f, 0f, 0f);
     var instance = new LinearFixedPath {origin = origin, target = target, speed = 1f};
     return instance;
 }
Ejemplo n.º 2
0
    public Tuple <IAnimation, FakeCurve> fixture_curve()
    {
        var        curve = new FakeCurve();
        IAnimation anim  = new FakeAnimation()
        {
            AnimationCurve = curve, AnimationTarget = new FakeTarget(this)
        };

        return(Tuple.New(anim, curve));
    }
 private ArcFixedPath fixture()
 {
     curve = new FakeCurve {duration = 5f, elapsed = 0f};
     origin = this.SpawnBlank();
     target = this.SpawnBlank();
     mobile = this.SpawnBlank();
     mobile.transform.position = new Vector3(0f, 0f, 0f);
     var instance = new ArcFixedPath {Height = 10f, Up = new Vector3(0f, 1f, 0f), Origin = origin, Target = target, Speed = 1f};
     return instance;
 }
    private LinearFixedPath fixture()
    {
        curve = new FakeCurve {
            duration = 5f, elapsed = 0f
        };
        origin = this.SpawnBlank();
        target = this.SpawnBlank();
        mobile = this.SpawnBlank();
        mobile.transform.position = new Vector3(0f, 0f, 0f);
        var instance = new LinearFixedPath {
            origin = origin, target = target, speed = 1f
        };

        return(instance);
    }
    private ArcFixedPath fixture()
    {
        curve = new FakeCurve {
            duration = 5f, elapsed = 0f
        };
        origin = this.SpawnBlank();
        target = this.SpawnBlank();
        mobile = this.SpawnBlank();
        mobile.transform.position = new Vector3(0f, 0f, 0f);
        var instance = new ArcFixedPath {
            Height = 10f, Up = new Vector3(0f, 1f, 0f), Origin = origin, Target = target, Speed = 1f
        };

        return(instance);
    }
 public Tuple<IAnimation, FakeCurve> fixture_curve()
 {
     var curve = new FakeCurve();
     IAnimation anim = new FakeAnimation() { AnimationCurve = curve, AnimationTarget = new FakeTarget(this) };
     return Tuple.New(anim, curve);
 }