Exemplo n.º 1
0
 public override void DoClickToAct()
 {
     Go.to(doorA.transform, 0.3f, new GoTweenConfig().position(new Vector3(0, 0, 0.28f), true).setEaseType(GoEaseType.QuadInOut));
     Go.to(doorB.transform, 0.3f, new GoTweenConfig().position(new Vector3(0, 0, -0.28f), true).setEaseType(GoEaseType.QuadInOut));
     elevatorButton.Push();
     SetInstruction2();
     Invoke("StartTweenDown", delayStartTime);
 }
Exemplo n.º 2
0
    public override void DoClickToAct()
    {
        //ScaleTweenProperty DoorScale = new blabla
        buttonPush.Push();
        var elevatorPath = new Vector3[] { new Vector3(0, 0, 0), new Vector3(0, 2.4f, 0) };
        var path         = new GoSpline(elevatorPath);
        //path.closePath();

        GoTweenConfig stepConfig = new GoTweenConfig().positionPath(path, true).onComplete(OpenDoors);

        stepConfig.setEaseType(GoEaseType.QuadInOut);
        Go.to(transform.parent.gameObject.transform, callTime, stepConfig);
    }