Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Integrating Outside Code
  • Loading branch information
apw14002 committed Oct 25, 2016
1 parent dd89bc0 commit c893036
Show file tree
Hide file tree
Showing 121 changed files with 78,635 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified AnimationSpriteViewer/.DS_Store
Binary file not shown.
Binary file modified AnimationSpriteViewer/ProjectFiles/.DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions IntegratingOutsideCode/Assets/Assets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions IntegratingOutsideCode/Assets/Scenes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions IntegratingOutsideCode/Assets/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions IntegratingOutsideCode/Assets/Scripts/MotionPaths.cs
@@ -0,0 +1,70 @@
using UnityEngine;
using System.Collections;

public class MotionPaths : MonoBehaviour {

public GameObject plane1;

public GameObject plane2;
public GameObject plane3;
public GameObject plane4;
public GameObject plane5;

public GameObject player;

public BoxCollider halfway;









// Use this for initialization
void Start () {

Invoke ("fly1", 1);
Invoke ("fly2", 2);
Invoke ("fly3", 3);
Invoke ("fly4", 4);
Invoke ("fly5", 5);
}

// Update is called once per frame
void Update () {


}

public void fly1 () {
iTween.MoveTo (plane1, iTween.Hash ("path", iTweenPath.GetPath ("path1"), "time", 10));
}

public void fly2 () {
iTween.MoveTo (plane2, iTween.Hash ("path", iTweenPath.GetPath ("path2"), "time", 10));
//iTween.RotateTo(plane2,
}

public void fly3 () {
iTween.MoveTo (plane3, iTween.Hash ("path", iTweenPath.GetPath ("path3"), "time", 10));
//LookTo(plane3, player, float 5.0);
}

public void fly4 () {
iTween.MoveTo (plane4, iTween.Hash ("path", iTweenPath.GetPath ("path4"), "time", 10));
//if (passes solid body) {
// PunchScale(plane4, Vector3 amount, float time);
//}
}

public void fly5 () {
iTween.MoveTo (plane5, iTween.Hash ("path", iTweenPath.GetPath ("path5"), "time", 10));
//if (passes solid body) {
//ShakePosition(plane5, Vector3 amount, float time)
//}
}


}
12 changes: 12 additions & 0 deletions IntegratingOutsideCode/Assets/Scripts/MotionPaths.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions IntegratingOutsideCode/Assets/iTweenEditor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions IntegratingOutsideCode/Assets/iTweenEditor/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c893036

Please sign in to comment.