This commit is contained in:
ligiatosa 2015-01-14 00:03:49 +02:00
parent 3158ad6243
commit 51ecd178c1
12 changed files with 251 additions and 0 deletions

View File

@ -0,0 +1,44 @@
using UnityEngine;
using System.Collections;
public class MisacaPaianjen : MonoBehaviour {
// Use this for initialization
void Start () {
itembounce();
}
Vector3 speed = new Vector3(0,0.002f,0);
bool bouncing = true;
// Update is called once per frame
void Update () {
if (bouncing == true) {
this.transform.position += speed;
} else if (bouncing == false) {
this.transform.position -= speed;
}
//bouncing = !bouncing;
}
IEnumerator itembounce() {
for(int i=0;i>1;i++)
{
// yield return new WaitForSeconds(0.002f);
//bouncing = !bouncing;
bouncing = !bouncing;
yield return new WaitForSeconds(0.002f);
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f63a20eaa3e3c1841b079fecfda81c75
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;
public class RandomSpider : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 82e5532adcca69249891443803001d52
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Binary file not shown.

View File

@ -0,0 +1,88 @@
fileFormatVersion: 2
guid: f327a34c9a416b040af7f8ca1a669c92
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: Fund
100002: //RootNode
100004: Picior1
100006: Picior2
100008: Picior3
100010: Picior4
400000: Fund
400002: //RootNode
400004: Picior1
400006: Picior2
400008: Picior3
400010: Picior4
2300000: Fund
2300002: Picior1
2300004: Picior2
2300006: Picior3
2300008: Picior4
3300000: Fund
3300002: Picior1
3300004: Picior2
3300006: Picior3
3300008: Picior4
4300000: Picior4
4300002: Picior3
4300004: Picior2
4300006: Picior1
4300008: Fund
7400000: Default Take
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
motionNodeName:
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:

Binary file not shown.

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 6f06310fab9d89742b729daad0d15cc1
DefaultImporter:
userData:

View File

@ -0,0 +1,36 @@
using UnityEngine;
using System.Collections;
public class misca2 : MonoBehaviour {
IEnumerator Start () {
//yield return new WaitForSeconds (0.2f);
//float width = camera.pixelWidth;
Vector3 position = new Vector3(Random.Range(-5.0F, 5.0F), 0, Random.Range(-5.0F, 5.0F));
Vector3 pointA = transform.position;
Vector3 pointB = pointA + new Vector3 (0.5f,0,0.5f);
while (true) {
yield return StartCoroutine(MoveObject(transform, pointA, position, 1.5f));
yield return StartCoroutine(MoveObject(transform, position, pointA, 1.5f));
position = new Vector3(Random.Range(-5.0F, 5.0F), 0, Random.Range(-5.0F, 5.0F));
}
}
IEnumerator MoveObject (Transform thisTransform, Vector3 startPos, Vector3 endPos, float time) {
float i = 0.0f;
float rate = 1.0f / time;
while (i < 1.0f) {
i += Time.deltaTime * rate;
thisTransform.position = Vector3.Lerp(startPos, endPos, i);
yield return null;
}
}
// Update is called once per frame
void Update () {
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f6e251b779901f04db3728b14fd0da67
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,32 @@
using UnityEngine;
using System.Collections;
public class misca3 : MonoBehaviour {
IEnumerator Start () {
yield return new WaitForSeconds (0.5f);
Vector3 pointA = transform.position;
Vector3 pointB = pointA + new Vector3 (0,0.05f,0);
while (true) {
yield return StartCoroutine(MoveObject(transform, pointA, pointB, 0.5f));
yield return StartCoroutine(MoveObject(transform, pointB, pointA, 0.5f));
}
}
IEnumerator MoveObject (Transform thisTransform, Vector3 startPos, Vector3 endPos, float time) {
float i = 0.0f;
float rate = 1.0f / time;
while (i < 1.0f) {
i += Time.deltaTime * rate;
thisTransform.position = Vector3.Lerp(startPos, endPos, i);
yield return null;
}
}
// Update is called once per frame
void Update () {
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c0d2b45e067b8af4aafe3029b5b82676
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: