This commit is contained in:
Sophie 2016-04-09 11:01:21 -04:00
commit 26e9009cbf
24 changed files with 1720 additions and 362 deletions

View File

@ -28,6 +28,7 @@ GameObject:
- 23: {fileID: 2317388} - 23: {fileID: 2317388}
- 114: {fileID: 11437858} - 114: {fileID: 11437858}
- 135: {fileID: 13502558} - 135: {fileID: 13502558}
- 54: {fileID: 5491084}
m_Layer: 0 m_Layer: 0
m_Name: Asteroid_1 m_Name: Asteroid_1
m_TagString: Asteroid m_TagString: Asteroid
@ -93,6 +94,21 @@ MeshFilter:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026} m_GameObject: {fileID: 160026}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5491084
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &11437858 --- !u!114 &11437858
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1

View File

@ -28,6 +28,7 @@ GameObject:
- 23: {fileID: 2317388} - 23: {fileID: 2317388}
- 114: {fileID: 11437858} - 114: {fileID: 11437858}
- 135: {fileID: 13502558} - 135: {fileID: 13502558}
- 54: {fileID: 5406432}
m_Layer: 0 m_Layer: 0
m_Name: Asteroid_2 m_Name: Asteroid_2
m_TagString: Asteroid m_TagString: Asteroid
@ -93,6 +94,21 @@ MeshFilter:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026} m_GameObject: {fileID: 160026}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5406432
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &11437858 --- !u!114 &11437858
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1

View File

@ -28,6 +28,7 @@ GameObject:
- 23: {fileID: 2317388} - 23: {fileID: 2317388}
- 114: {fileID: 11437858} - 114: {fileID: 11437858}
- 135: {fileID: 13502558} - 135: {fileID: 13502558}
- 54: {fileID: 5463390}
m_Layer: 0 m_Layer: 0
m_Name: Asteroid_3 m_Name: Asteroid_3
m_TagString: Asteroid m_TagString: Asteroid
@ -93,6 +94,21 @@ MeshFilter:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026} m_GameObject: {fileID: 160026}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5463390
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &11437858 --- !u!114 &11437858
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1

View File

@ -28,6 +28,7 @@ GameObject:
- 23: {fileID: 2317388} - 23: {fileID: 2317388}
- 114: {fileID: 11437858} - 114: {fileID: 11437858}
- 135: {fileID: 13502558} - 135: {fileID: 13502558}
- 54: {fileID: 5474450}
m_Layer: 0 m_Layer: 0
m_Name: Asteroid_4 m_Name: Asteroid_4
m_TagString: Asteroid m_TagString: Asteroid
@ -93,6 +94,21 @@ MeshFilter:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026} m_GameObject: {fileID: 160026}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5474450
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 160026}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &11437858 --- !u!114 &11437858
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1

View File

@ -60,6 +60,7 @@ GameObject:
- 136: {fileID: 13683032} - 136: {fileID: 13683032}
- 54: {fileID: 5462614} - 54: {fileID: 5462614}
- 136: {fileID: 13672180} - 136: {fileID: 13672180}
- 114: {fileID: 11491252}
m_Layer: 0 m_Layer: 0
m_Name: Character m_Name: Character
m_TagString: Player m_TagString: Player
@ -145,6 +146,22 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
PlayerNumber: 0 PlayerNumber: 0
--- !u!114 &11491252
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 170392}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 77462b2431858f84b9bc2d055c2f4d45, type: 3}
m_Name:
m_EditorClassIdentifier:
aspi: {fileID: 0}
WalkAnimSpeed: 0
WalkAnimAngle: 0
EjectSpinSpeed: 80
DustParticlesEmitter: {fileID: 138982, guid: 6233079c5a9a756458811f283fdca112, type: 2}
--- !u!114 &11494368 --- !u!114 &11494368
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -157,7 +174,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
Rotator: {fileID: 154602} Rotator: {fileID: 154602}
SpriteWalk: {fileID: 130732} SpriteWalk: {fileID: 21220066}
SpriteDash: {fileID: 157058} SpriteDash: {fileID: 157058}
Width: 0.4 Width: 0.4
DashTime: 0.4 DashTime: 0.4
@ -165,7 +182,7 @@ MonoBehaviour:
JumpSpeed: 5 JumpSpeed: 5
Gravity: 15 Gravity: 15
Speed: 5 Speed: 5
EjectSpeed: 20 EjectSpeed: 10
planet: {fileID: 0} planet: {fileID: 0}
--- !u!136 &13672180 --- !u!136 &13672180
CapsuleCollider: CapsuleCollider:
@ -189,10 +206,10 @@ CapsuleCollider:
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_IsTrigger: 0 m_IsTrigger: 0
m_Enabled: 1 m_Enabled: 1
m_Radius: 0.77 m_Radius: 0.76
m_Height: 3.37 m_Height: 1.59
m_Direction: 1 m_Direction: 1
m_Center: {x: -0.03, y: 0.35, z: 0} m_Center: {x: -0.03, y: 1.31, z: 0}
--- !u!212 &21220066 --- !u!212 &21220066
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -229,7 +246,7 @@ SpriteRenderer:
m_PrefabParentObject: {fileID: 0} m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157058} m_GameObject: {fileID: 157058}
m_Enabled: 0 m_Enabled: 1
m_CastShadows: 0 m_CastShadows: 0
m_ReceiveShadows: 0 m_ReceiveShadows: 0
m_Materials: m_Materials:

View File

@ -74,7 +74,7 @@ ParticleSystem:
minMaxState: 0 minMaxState: 0
speed: 1 speed: 1
randomSeed: 0 randomSeed: 0
looping: 1 looping: 0
prewarm: 0 prewarm: 0
playOnAwake: 1 playOnAwake: 1
moveWithTransform: 1 moveWithTransform: 1

View File

@ -36,7 +36,7 @@ ParticleSystem:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 120238} m_GameObject: {fileID: 120238}
serializedVersion: 2 serializedVersion: 2
lengthInSec: 0.75 lengthInSec: 0.85
startDelay: startDelay:
scalar: 0 scalar: 0
maxCurve: maxCurve:
@ -76,14 +76,14 @@ ParticleSystem:
randomSeed: 0 randomSeed: 0
looping: 0 looping: 0
prewarm: 0 prewarm: 0
playOnAwake: 0 playOnAwake: 1
moveWithTransform: 1 moveWithTransform: 1
scalingMode: 1 scalingMode: 1
InitialModule: InitialModule:
serializedVersion: 2 serializedVersion: 2
enabled: 1 enabled: 1
startLifetime: startLifetime:
scalar: 0.75 scalar: 0.85
maxCurve: maxCurve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:

View File

@ -65,7 +65,7 @@ public class Asteroid : MonoBehaviour
//crashPosition.z = 1.15f; //crashPosition.z = 1.15f;
var asteroidTheta = Mathf.Atan2(this.transform.position.y, this.transform.position.x); var asteroidTheta = Mathf.Atan2(this.transform.position.y, this.transform.position.x);
var angleImpact = (360.0f + (((asteroidTheta * 180)) / Mathf.PI)) % 360; var angleImpact = (360.0f + (((asteroidTheta * 180)) / Mathf.PI)) % 360;
var emitter = (GameObject)Instantiate(CrashFlamesEmitter, crashPosition, Quaternion.identity); var emitter = (GameObject)Instantiate(CrashFlamesEmitter, crashPosition, Quaternion.identity);
@ -73,11 +73,18 @@ public class Asteroid : MonoBehaviour
//et donner l'angle d'impact inverse en z (vers l'extérieur de la planete) //et donner l'angle d'impact inverse en z (vers l'extérieur de la planete)
//emitter.transform.Rotate(0,90.0f,angleImpact); //emitter.transform.Rotate(0,90.0f,angleImpact);
emitter.transform.localRotation = Quaternion.Euler(0, 180.0f, angleImpact); emitter.transform.localRotation = Quaternion.Euler(0, 180.0f, angleImpact);
emitter.GetComponent<ParticleSystem>().Play(true);
//var wtf = new WaitForSeconds(emitter.GetComponent<ParticleSystem>().duration);
//Destroy(emitter);
} }
Destroy(this.gameObject); Destroy(this.gameObject);
} }
} }
} }

View File

@ -64,6 +64,12 @@ public class AsteroidSpawner : TimerFunctionsClass
var planet = FindObjectOfType<PlanetManager>(); var planet = FindObjectOfType<PlanetManager>();
foreach (var p in players) foreach (var p in players)
{ {
//arrêter de générer des asteroides si player ejecté (sinon on se rends compte d,une ligne d'astéroides)
Astronaut a = p.GetComponent<Astronaut>();
if (a.State >= Astronaut.AstronautState.Ejecting)
continue; //next player;
var playerTheta = Mathf.Atan2(p.transform.position.y, p.transform.position.x); var playerTheta = Mathf.Atan2(p.transform.position.y, p.transform.position.x);
var angle = ( 360.0f + (((playerTheta * 180)) / Mathf.PI)) % 360; ///TODO : a changer pour p.theta var angle = ( 360.0f + (((playerTheta * 180)) / Mathf.PI)) % 360; ///TODO : a changer pour p.theta
//print("angle:" + angle); //print("angle:" + angle);

View File

@ -42,14 +42,19 @@ public class Astronaut : MonoBehaviour {
if (oldState == AstronautState.Dashing) if (oldState == AstronautState.Dashing)
{ {
SpriteWalk.gameObject.SetActive(false); _astronautAnimator.Land();
SpriteDash.gameObject.SetActive(true); //SpriteWalk.gameObject.SetActive(false);
//SpriteDash.gameObject.SetActive(true);
} }
else //else if (_state == AstronautState.Jumping)
//{
// _astronautAnimator.Jump();
//}
/*else
{ {
SpriteWalk.gameObject.SetActive(true); SpriteWalk.gameObject.SetActive(true);
SpriteDash.gameObject.SetActive(false); SpriteDash.gameObject.SetActive(false);
} }*/
/*if (_state == AstronautState.Walking) /*if (_state == AstronautState.Walking)
{ {
@ -78,7 +83,7 @@ public class Astronaut : MonoBehaviour {
} }
// Use this for initialization // Use this for initialization
void Start() protected void Start()
{ {
_astronautAnimator = GetComponent<AstronautAnimator>(); _astronautAnimator = GetComponent<AstronautAnimator>();
_astronautAnimator.aspi = this; _astronautAnimator.aspi = this;
@ -90,7 +95,6 @@ public class Astronaut : MonoBehaviour {
} }
State = AstronautState.Idle; State = AstronautState.Idle;
//Debug.Log(planet.GetPlanetRadius(0));
theta = 0; theta = 0;
height = planet.GetPlanetRadius(theta); height = planet.GetPlanetRadius(theta);
UpdatePosition(); UpdatePosition();
@ -142,12 +146,11 @@ public class Astronaut : MonoBehaviour {
float radius = GetGroundRadius(); float radius = GetGroundRadius();
if (grounded = (height <= radius)) if (grounded = (height <= radius))
{ {
/*if (State == AstronautState.Dashing) //Pousser la plateforme avec le dash une fois qu'on touche au sol.
if (State == AstronautState.Dashing)
{ {
planet.PushWedge(Repeat(theta,360)); planet.PushWedge(this.theta);
State = AstronautState.Idle; }
//TODO_SR Create dash impact here
}*/
height = radius; height = radius;
if (State == AstronautState.Jumping) if (State == AstronautState.Jumping)
@ -261,20 +264,23 @@ public class Astronaut : MonoBehaviour {
{ {
Debug.Log("Jump!"); Debug.Log("Jump!");
if (State >= AstronautState.Ejecting)
return;
_astronautAnimator.Jump();
if (State == AstronautState.Jumping) if (State == AstronautState.Jumping)
{ {
Dash(); Dash();
State=AstronautState.Dashing; //TODO relacher l'état Dashing //State=AstronautState.Dashing; //TODO relacher l'état Dashing
return; return;
} }
else if (State >= AstronautState.Dashing)
return;
else if (State >= AstronautState.Ejecting)
return;
if (!grounded) return; _astronautAnimator.Jump(); // deja dans le property get/set
if (!grounded) return;
vSpeed = JumpSpeed; vSpeed = JumpSpeed;
grounded = false; grounded = false;
State = AstronautState.Jumping; State = AstronautState.Jumping;
@ -289,10 +295,11 @@ public class Astronaut : MonoBehaviour {
if (State >= AstronautState.Ejecting) if (State >= AstronautState.Ejecting)
return; return;
lastDashTime = Time.time; lastDashTime = Time.time;
planet.PushWedge(this.theta); //planet.PushWedge(this.theta); //TODO devrait se faire juste avant d'être groundé
State = AstronautState.Dashing;
//State = AstronautState.Dashing; _astronautAnimator.Dash();
//vSpeed = -DashSpeed; //vSpeed = -DashSpeed;
} }
@ -300,6 +307,7 @@ public class Astronaut : MonoBehaviour {
{ {
State = AstronautState.Ejecting; State = AstronautState.Ejecting;
vSpeed = EjectSpeed; vSpeed = EjectSpeed;
_astronautAnimator.Eject();
grounded = false; grounded = false;
} }

View File

@ -9,17 +9,24 @@ public class AstronautAnimator : MonoBehaviour {
public float WalkAnimAngle; public float WalkAnimAngle;
public float EjectSpinSpeed; public float EjectSpinSpeed;
// Use this for initialization public GameObject DustParticlesEmitter;
void Start () { // Use this for initialization
protected void Start () {
} }
// Update is called once per frame // Update is called once per frame
void Update () { protected void Update () {
} }
public void Jump() public void Jump()
{
aspi.SpriteWalk.gameObject.SetActive(true);
aspi.SpriteDash.gameObject.SetActive(false);
}
public void Dash()
{ {
aspi.SpriteWalk.gameObject.SetActive(false); aspi.SpriteWalk.gameObject.SetActive(false);
aspi.SpriteDash.gameObject.SetActive(true); aspi.SpriteDash.gameObject.SetActive(true);
@ -27,6 +34,7 @@ public class AstronautAnimator : MonoBehaviour {
public void Land() public void Land()
{ {
aspi.SpriteWalk.gameObject.SetActive(true); aspi.SpriteWalk.gameObject.SetActive(true);
aspi.SpriteDash.gameObject.SetActive(false); aspi.SpriteDash.gameObject.SetActive(false);
} }
@ -72,4 +80,12 @@ public class AstronautAnimator : MonoBehaviour {
} }
yield return null; yield return null;
} }
public void EmitDustParticules()
{
if (DustParticlesEmitter)
{
var emitter = (GameObject)Instantiate(DustParticlesEmitter, this.gameObject.transform.position, Quaternion.identity);
}
}
} }

View File

@ -2,32 +2,45 @@
using UnityEngine; using UnityEngine;
using System.Collections; using System.Collections;
public class Earthquake : MonoBehaviour { public class Earthquake : MonoBehaviour {
int gaugeLevel;
public int gaugeMax=100; public float CriticalMin;
public float CriticalMax;
//public float testValue;
//public float gaugeLevel;
//public int gaugeMax=100;
private SpriteRenderer core;
PlanetManager pmgr;
// Use this for initialization // Use this for initialization
public void Start() public void Start()
{ {
gaugeLevel = 0; pmgr = FindObjectOfType<PlanetManager>();
InvokeRepeating("FillGauge", 1, 1F); //gaugeLevel = 0;
core = this.GetComponent<SpriteRenderer>();
//InvokeRepeating("FillGauge", 1, 1F);
} }
// Update is called once per frame // Update is called once per frame
public void Update () { public void Update () {
float disbalance = pmgr.GetDisbalance();
float val = Mathf.Clamp((disbalance-CriticalMin) / (CriticalMax-CriticalMin),0,1);
float val2 = Mathf.Clamp((val - 0.6f) / 0.4f, 0, 1);
pmgr.setColor(val2);
core.color = new Color(1f, 1f - val, 1f - val);
} }
/// <summary> /// <summary>
/// Actualiser l'affichage de la gauge /// Actualiser l'affichage de la gauge
/// </summary> /// </summary>
public void UpdateFixed() public void UpdateFixed()
{ {
} }
/// <summary> /// <summary>
@ -35,11 +48,11 @@ public class Earthquake : MonoBehaviour {
/// </summary> /// </summary>
public void FillGauge() public void FillGauge()
{ {
if (gaugeLevel < gaugeMax)
/*if (gaugeLevel < gaugeMax)
{ {
gaugeLevel += 1; gaugeLevel += 1;
//anim state [0-90] normale, rotation //anim state [0-90] normale, rotation
//color hue de plus en plus vers le rouge //color hue de plus en plus vers le rouge
@ -59,7 +72,7 @@ public class Earthquake : MonoBehaviour {
gaugeLevel = 0; gaugeLevel = 0;
} }
print("gauge is at: " + gaugeLevel); print("gauge is at: " + gaugeLevel);*/
} }

View File

@ -1,255 +1,296 @@
using System; using System;
using UnityEngine; using UnityEngine;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
public class PlanetManager : MonoBehaviour public class PlanetManager : MonoBehaviour
{ {
public int NbCartiers = 10; public int NbCartiers = 10;
public float TailleCartiersEnDegres = 0; //radian -> valeurs 0 a 360 public float TailleCartiersEnDegres = 0; //radian -> valeurs 0 a 360
public float CartierResetRatioSpeedFactor = 0.23f; //Entre 0.05 et 1 ou plus on aime que ca restore lentement, randomnly public float CartierResetRatioSpeedFactor = 0.23f; //Entre 0.05 et 1 ou plus on aime que ca restore lentement, randomnly
public bool CartierResetRatioSpeedRandomize = true; public bool CartierResetRatioSpeedRandomize = true;
public bool CartierResetOverTime = true; public bool CartierResetOverTime = true;
public float CartierMinRatio = 0.4f; public float CartierMinRatio = 0.4f;
public float CartierMaxRatio = 2.0f; public float CartierMaxRatio = 2.0f;
public float CartierStepSize = 0.25f; public float CartierStepSize = 0.25f;
public GameObject WedgePrefab = null; public float balanceValue;
public List<Wedge> wedges = new List<Wedge>(); private float disbalance = 0f;
public GameObject WedgePrefab = null;
// Use this for initialization public List<Wedge> wedges = new List<Wedge>();
public void Awake () {
TailleCartiersEnDegres = 360.0f / NbCartiers; // Use this for initialization
public void Awake () {
for(int i = 0; i < NbCartiers; i++) TailleCartiersEnDegres = 360.0f / NbCartiers;
{ balanceValue = (CartierMaxRatio + CartierMinRatio) / 2;
float debutAngleTheta = i* TailleCartiersEnDegres;
var w = new Wedge() {tMin = debutAngleTheta, tMax = debutAngleTheta + TailleCartiersEnDegres}; for(int i = 0; i < NbCartiers; i++)
{
//float angle = i * Mathf.PI * 2 / NbCartiers * 360; float debutAngleTheta = i* TailleCartiersEnDegres;
//var wedgePos = GetPlanetCoordinatesFromPlayerXY(debutAngleTheta, 0); var w = new Wedge() {tMin = debutAngleTheta, tMax = debutAngleTheta + TailleCartiersEnDegres};
// wedgePos.x -= Mathf.Cos(debutAngleTheta * Mathf.PI / 180);
//wedgePos.y -= Mathf.Sin(debutAngleTheta * Mathf.PI / 180); //float angle = i * Mathf.PI * 2 / NbCartiers * 360;
var obj = Instantiate(WedgePrefab, new Vector3(0.0f,0.0f, 0.0f), Quaternion.Euler(0, 0, debutAngleTheta)); //var wedgePos = GetPlanetCoordinatesFromPlayerXY(debutAngleTheta, 0);
obj.name = "wedge_" + i; // wedgePos.x -= Mathf.Cos(debutAngleTheta * Mathf.PI / 180);
w.sprite = GameObject.Find(obj.name); //wedgePos.y -= Mathf.Sin(debutAngleTheta * Mathf.PI / 180);
w.gameObject = (GameObject)obj; var obj = Instantiate(WedgePrefab, new Vector3(0.0f,0.0f, 0.0f), Quaternion.Euler(0, 0, debutAngleTheta));
wedges.Add(w); //pushes at end. obj.name = "wedge_" + i;
} w.sprite = GameObject.Find(obj.name);
} w.gameObject = (GameObject)obj;
wedges.Add(w); //pushes at end.
// Update is called once per frame }
public void Update () { }
// Update is called once per frame
} public void Update () {
public void FixedUpdate() }
{
if (!this.CartierResetOverTime) return; public void setColor(float val)
//Ramener les plateforme vers leur position initiale 0; {
foreach (Wedge w in wedges) {
foreach (var w in wedges) //w = new Color(1f, 1f - val, 1f - val);
{ w.sprite.GetComponentInChildren<SpriteRenderer>().color = new Color(1f, (1-val), (1-val));
if (w.offset <= 1.05f && w.offset >= 0.95f) }
{
w.offset = 1.0f; //TODO make planet red
} //TODO screen shake
else if (w.offset > 1.0f) //TODO controller shake?
{ }
if (!CartierResetRatioSpeedRandomize)
{ public float GetDisbalance()
w.offset -= 0.005f*CartierResetRatioSpeedFactor; {
} disbalance = 0;
else foreach (var w in wedges)
{ {
w.offset -= 0.005f*CartierResetRatioSpeedFactor * UnityEngine.Random.Range(-0.5f, 2f); var temp = Math.Abs((w.offset - balanceValue) / (CartierMaxRatio - balanceValue));
} disbalance += temp;
} }
else if (w.offset < 1.0f) disbalance /= NbCartiers;
{ return disbalance;
if (!CartierResetRatioSpeedRandomize) }
{
w.offset += 0.005f*CartierResetRatioSpeedFactor; public void FixedUpdate()
} {
else if (!this.CartierResetOverTime) return;
{ //Ramener les plateforme vers leur position initiale 0;
w.offset += 0.005f*CartierResetRatioSpeedFactor*UnityEngine.Random.Range(0f, 3f);
} foreach (var w in wedges)
} {
if (w.offset <= 1.05f && w.offset >= 0.95f)
w.sprite.transform.localScale = new Vector3(w.offset, w.offset,1.0f); {
} w.offset = 1.0f;
//TODO_SR For each player }
} else if (w.offset > 1.0f)
{
public void PushWedge(float thetaPlayerX) if (!CartierResetRatioSpeedRandomize)
{ {
var index = GetWedgeIndex(thetaPlayerX); w.offset -= 0.005f*CartierResetRatioSpeedFactor;
var w = wedges[index]; }
else
w.offset = w.offset - CartierStepSize; {
if (w.offset < CartierMinRatio) w.offset -= 0.005f*CartierResetRatioSpeedFactor * UnityEngine.Random.Range(-0.5f, 2f);
w.offset = CartierMinRatio; }
}
else if (w.offset < 1.0f)
w.sprite.transform.localScale = new Vector3(w.offset, w.offset, 1); {
if (!CartierResetRatioSpeedRandomize)
//push back l'opposée {
var indexOppose = GetWedgeOpposé(index); w.offset += 0.005f*CartierResetRatioSpeedFactor;
var v = wedges[indexOppose]; }
else
v.offset = v.offset + CartierStepSize; {
if (v.offset >= CartierMaxRatio) w.offset += 0.005f*CartierResetRatioSpeedFactor*UnityEngine.Random.Range(0f, 3f);
{ }
v.offset = CartierMaxRatio; }
w.sprite.transform.localScale = new Vector3(w.offset, w.offset,1.0f);
//checker si on éjecte des players }
var players = FindObjectsOfType<Astronaut>(); //TODO_SR For each player
foreach (var p in players) }
{
if (v.tMax >= p.GetTheta() && p.GetTheta() >= v.tMin && p.IsGrounded()) public void PushWedge(float thetaPlayerX)
{ {
p.Eject(); var index = GetWedgeIndex(thetaPlayerX);
} var w = wedges[index];
}
w.offset = w.offset - CartierStepSize;
if (w.offset < CartierMinRatio)
} w.offset = CartierMinRatio;
v.sprite.transform.localScale = new Vector3(v.offset, v.offset, 1); w.sprite.transform.localScale = new Vector3(w.offset, w.offset, 1);
// call fill gauge after every hit. //push back l'opposée
var earthQuakeGauge = FindObjectOfType<Earthquake>(); var indexOppose = GetWedgeOpposé(index);
earthQuakeGauge.FillGauge(); var v = wedges[indexOppose];
}
v.offset = v.offset + CartierStepSize;
/// <summary> if (v.offset >= CartierMaxRatio)
/// On a earthquake, everything expands by a step {
/// </summary> v.offset = CartierMaxRatio;
public void CallEarthQuake()
{
foreach (var w in wedges) //checker si on éjecte des players
{ var players = FindObjectsOfType<Astronaut>();
w.offset = w.offset + CartierStepSize; foreach (var p in players)
if (w.offset > CartierMaxRatio) {
w.offset = CartierMaxRatio; if (v.tMax >= p.GetTheta() && p.GetTheta() >= v.tMin && p.IsGrounded())
} {
} p.Eject();
}
//public void PushWedge(float thetaPlayerX) }
//{
// var index = GetWedgeIndex(thetaPlayerX);
// var w = wedges[index]; }
// w.offset = w.offset - 0.5f;
// if (w.offset < -1.0f) v.sprite.transform.localScale = new Vector3(v.offset, v.offset, 1);
// w.offset = -1.0f;
// call fill gauge after every hit.
// var angle = w.tMin; //w.tMax - TailleCartiersEnDegres/2; var earthQuakeGauge = FindObjectOfType<Earthquake>();
earthQuakeGauge.FillGauge();
// var normalPos = GetPlanetCoordinatesFromPlayerXY(angle, 0); }
// normalPos.x -= Mathf.Cos(angle * Mathf.PI / 180);
// normalPos.y -= Mathf.Sin(angle * Mathf.PI / 180); /// <summary>
/// On a earthquake, everything expands by a step
// var wedgePos = GetPlanetCoordinatesFromPlayerXY(angle, 0); /// </summary>
// wedgePos.x -= Mathf.Cos(angle * Mathf.PI / 180) - 50 * w.offset * Mathf.Cos(angle * Mathf.PI / 180); public void CallEarthQuake()
// wedgePos.y -= Mathf.Sin(angle * Mathf.PI / 180) - 50 * w.offset * Mathf.Sin(angle * Mathf.PI / 180); {
foreach (var w in wedges)
// w.sprite.transform.position = Vector3.Lerp(normalPos, wedgePos, Time.deltaTime); {
w.offset = w.offset + CartierStepSize;
// ///push back l'opposée if (w.offset >= CartierMaxRatio)
// var indexOppose = GetWedgeOpposé(index); {
// var v = wedges[indexOppose]; w.offset = CartierMaxRatio;
// v.offset = v.offset + 0.5f; //checker si on éjecte des players
// if (v.offset > 1.0f) var players = FindObjectsOfType<Astronaut>();
// v.offset = 1.0f; foreach (var p in players)
{
// angle = v.tMin; //w.tMax - TailleCartiersEnDegres/2; //si player sur la plateforme et grounded
if (w.tMax >= p.GetTheta() && p.GetTheta() >= w.tMin && p.IsGrounded())
// normalPos = GetPlanetCoordinatesFromPlayerXY(angle, 0); {
// normalPos.x -= Mathf.Cos(angle * Mathf.PI / 180); p.Eject();
// normalPos.y -= Mathf.Sin(angle * Mathf.PI / 180); }
}
// wedgePos = GetPlanetCoordinatesFromPlayerXY(angle, 0); }
// wedgePos.x -= Mathf.Cos(angle * Mathf.PI / 180) - 50 * v.offset * Mathf.Cos(angle * Mathf.PI / 180);
// wedgePos.y -= Mathf.Sin(angle * Mathf.PI / 180) - 50 * v.offset * Mathf.Sin(angle * Mathf.PI / 180); }
}
// v.sprite.transform.position = Vector3.Lerp(normalPos, wedgePos, Time.deltaTime);
//public void PushWedge(float thetaPlayerX)
//} //{
// var index = GetWedgeIndex(thetaPlayerX);
/// <summary> // var w = wedges[index];
/// Radius sphere est scale/2
/// </summary> // w.offset = w.offset - 0.5f;
/// <returns></returns> // if (w.offset < -1.0f)
public float GetPlanetRadius() // w.offset = -1.0f;
{
return gameObject.transform.localScale.x / 2.0f; // var angle = w.tMin; //w.tMax - TailleCartiersEnDegres/2;
}
// var normalPos = GetPlanetCoordinatesFromPlayerXY(angle, 0);
/// <summary> // normalPos.x -= Mathf.Cos(angle * Mathf.PI / 180);
/// Radius sphere est scale/2 // normalPos.y -= Mathf.Sin(angle * Mathf.PI / 180);
/// </summary>
/// <returns></returns> // var wedgePos = GetPlanetCoordinatesFromPlayerXY(angle, 0);
public float GetPlanetRadius(float thetaPlayerX) // wedgePos.x -= Mathf.Cos(angle * Mathf.PI / 180) - 50 * w.offset * Mathf.Cos(angle * Mathf.PI / 180);
{ // wedgePos.y -= Mathf.Sin(angle * Mathf.PI / 180) - 50 * w.offset * Mathf.Sin(angle * Mathf.PI / 180);
var wedge = GetWedgeFromTheta(thetaPlayerX);
return GetPlanetRadius() * wedge.offset; // w.sprite.transform.position = Vector3.Lerp(normalPos, wedgePos, Time.deltaTime);
}
public Vector3 GetPlanetCoordinatesFromPlayerXY(float playerLocalX, float playerLocalY) // ///push back l'opposée
{ // var indexOppose = GetWedgeOpposé(index);
var theta = playerLocalX; // var v = wedges[indexOppose];
var wedgeRadius = GetPlanetRadius(playerLocalX) + playerLocalY;
var x = wedgeRadius * Mathf.Cos(theta * Mathf.PI / 180); // v.offset = v.offset + 0.5f;
var y = wedgeRadius * Mathf.Sin(theta * Mathf.PI / 180) ; // if (v.offset > 1.0f)
// v.offset = 1.0f;
return new Vector3(x, y, 0);
} // angle = v.tMin; //w.tMax - TailleCartiersEnDegres/2;
/// <summary> // normalPos = GetPlanetCoordinatesFromPlayerXY(angle, 0);
/// retourn le no de plateforme // normalPos.x -= Mathf.Cos(angle * Mathf.PI / 180);
/// </summary> // normalPos.y -= Mathf.Sin(angle * Mathf.PI / 180);
/// <param name="thetaPlayerX"></param>
public int GetWedgeIndex(float thetaPlayerX) // wedgePos = GetPlanetCoordinatesFromPlayerXY(angle, 0);
{ // wedgePos.x -= Mathf.Cos(angle * Mathf.PI / 180) - 50 * v.offset * Mathf.Cos(angle * Mathf.PI / 180);
return (int)Math.Floor(thetaPlayerX / TailleCartiersEnDegres); // wedgePos.y -= Mathf.Sin(angle * Mathf.PI / 180) - 50 * v.offset * Mathf.Sin(angle * Mathf.PI / 180);
}
// v.sprite.transform.position = Vector3.Lerp(normalPos, wedgePos, Time.deltaTime);
/// <summary>
/// //}
/// </summary>
/// <param name="wedgeIndex"></param> /// <summary>
/// <returns></returns> /// Radius sphere est scale/2
public int GetWedgeOpposé(int wedgeIndex) /// </summary>
{ /// <returns></returns>
//(i + 5) % 10 => [0,9] public float GetPlanetRadius()
return (wedgeIndex + NbCartiers / 2) % (NbCartiers); {
} return gameObject.transform.localScale.x / 2.0f;
}
/// <summary>
/// retourne l'objet interne /// <summary>
/// </summary> /// Radius sphere est scale/2
/// <param name="thetaPlayerX"></param> /// </summary>
/// <returns></returns> /// <returns></returns>
public Wedge GetWedgeFromTheta(float thetaPlayerX) public float GetPlanetRadius(float thetaPlayerX)
{ {
return wedges[GetWedgeIndex(thetaPlayerX % 360)]; var wedge = GetWedgeFromTheta(thetaPlayerX);
} return GetPlanetRadius() * wedge.offset;
}
/// <summary> public Vector3 GetPlanetCoordinatesFromPlayerXY(float playerLocalX, float playerLocalY)
/// Représente une plateforme qui bouge. {
/// </summary> var theta = playerLocalX;
public class Wedge var wedgeRadius = GetPlanetRadius(playerLocalX) + playerLocalY;
{ var x = wedgeRadius * Mathf.Cos(theta * Mathf.PI / 180);
public float offset = 1.0f; //valeurs entre minRatio et maxRatio; < 1 étant renfoncé, 1 position normale, et > 1 vers l'extérieur var y = wedgeRadius * Mathf.Sin(theta * Mathf.PI / 180) ;
public float tMin = 0; //theta min et theta max : angle thetat de début et fin du cartier;
public float tMax = 0; return new Vector3(x, y, 0);
}
public GameObject sprite; //sprite et collider 2D
public GameObject gameObject; //wedge prefab avec collider /// <summary>
} /// retourn le no de plateforme
} /// </summary>
/// <param name="thetaPlayerX"></param>
public int GetWedgeIndex(float thetaPlayerX)
{
return (int)Math.Floor(thetaPlayerX / TailleCartiersEnDegres);
}
/// <summary>
///
/// </summary>
/// <param name="wedgeIndex"></param>
/// <returns></returns>
public int GetWedgeOpposé(int wedgeIndex)
{
//(i + 5) % 10 => [0,9]
return (wedgeIndex + NbCartiers / 2) % (NbCartiers);
}
/// <summary>
/// retourne l'objet interne
/// </summary>
/// <param name="thetaPlayerX"></param>
/// <returns></returns>
public Wedge GetWedgeFromTheta(float thetaPlayerX)
{
print(GetWedgeIndex((thetaPlayerX)%360));
return wedges[GetWedgeIndex((thetaPlayerX) % 360)];
}
/// <summary>
/// Représente une plateforme qui bouge.
/// </summary>
public class Wedge
{
public float offset = 1.0f; //valeurs entre minRatio et maxRatio; < 1 étant renfoncé, 1 position normale, et > 1 vers l'extérieur
public float tMin = 0; //theta min et theta max : angle thetat de début et fin du cartier;
public float tMax = 0;
public GameObject sprite; //sprite et collider 2D
public GameObject gameObject; //wedge prefab avec collider
}
}

Binary file not shown.

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 9d5b4e40a18f443489c6c6a9d4916848
timeCreated: 1460209164
licenseType: Pro
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,173 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_GIWorkflowMode: 1
m_LightmapsMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 3
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AOMaxDistance: 1
m_Padding: 2
m_CompAOExponent: 0
m_LightmapParameters: {fileID: 0}
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
m_RuntimeCPUUsage: 25
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &101743108
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 101743113}
- 20: {fileID: 101743112}
- 92: {fileID: 101743111}
- 124: {fileID: 101743110}
- 81: {fileID: 101743109}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &101743109
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 101743108}
m_Enabled: 1
--- !u!124 &101743110
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 101743108}
m_Enabled: 1
--- !u!92 &101743111
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 101743108}
m_Enabled: 1
--- !u!20 &101743112
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 101743108}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
m_StereoMirrorMode: 0
--- !u!4 &101743113
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 101743108}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f1081db2f7d61e246a1a5429c01abbcb
timeCreated: 1460180831
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,173 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_GIWorkflowMode: 1
m_LightmapsMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 3
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AOMaxDistance: 1
m_Padding: 2
m_CompAOExponent: 0
m_LightmapParameters: {fileID: 0}
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
m_RuntimeCPUUsage: 25
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &1856252346
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1856252351}
- 20: {fileID: 1856252350}
- 92: {fileID: 1856252349}
- 124: {fileID: 1856252348}
- 81: {fileID: 1856252347}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1856252347
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1856252346}
m_Enabled: 1
--- !u!124 &1856252348
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1856252346}
m_Enabled: 1
--- !u!92 &1856252349
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1856252346}
m_Enabled: 1
--- !u!20 &1856252350
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1856252346}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
m_StereoMirrorMode: 0
--- !u!4 &1856252351
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1856252346}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dc6b29a7f6dc4c34281667893b052b06
timeCreated: 1460181283
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,173 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_GIWorkflowMode: 1
m_LightmapsMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 3
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AOMaxDistance: 1
m_Padding: 2
m_CompAOExponent: 0
m_LightmapParameters: {fileID: 0}
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
m_RuntimeCPUUsage: 25
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &772169812
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 772169817}
- 20: {fileID: 772169816}
- 92: {fileID: 772169815}
- 124: {fileID: 772169814}
- 81: {fileID: 772169813}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &772169813
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 772169812}
m_Enabled: 1
--- !u!124 &772169814
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 772169812}
m_Enabled: 1
--- !u!92 &772169815
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 772169812}
m_Enabled: 1
--- !u!20 &772169816
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 772169812}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
m_StereoMirrorMode: 0
--- !u!4 &772169817
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 772169812}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6bc6afaa5f686dd468196b700ce62473
timeCreated: 1460181292
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -85,25 +85,162 @@ NavMeshSettings:
cellSize: 0.16666667 cellSize: 0.16666667
manualCellSize: 0 manualCellSize: 0
m_NavMeshData: {fileID: 0} m_NavMeshData: {fileID: 0}
--- !u!1 &431637404 stripped --- !u!1001 &72971843
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.z
value: 0.11
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: planet
value:
objectReference: {fileID: 1027139440}
- target: {fileID: 154602, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Name
value: Astronaut_0
objectReference: {fileID: 0}
- target: {fileID: 11434752, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: PlayerNumber
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_IsPrefabParent: 0
--- !u!1 &76822469
GameObject: GameObject:
m_PrefabParentObject: {fileID: 170392, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_PrefabInternal: {fileID: 1660116367}
--- !u!114 &431637411
MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0} m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0} m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 431637404} serializedVersion: 4
m_Component:
- 4: {fileID: 76822471}
- 82: {fileID: 76822470}
m_Layer: 0
m_Name: SoundManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!82 &76822470
AudioSource:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 76822469}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 serializedVersion: 4
m_Script: {fileID: 11500000, guid: 77462b2431858f84b9bc2d055c2f4d45, type: 3} OutputAudioMixerGroup: {fileID: 0}
m_Name: m_audioClip: {fileID: 8300000, guid: 9d5b4e40a18f443489c6c6a9d4916848, type: 3}
m_EditorClassIdentifier: m_PlayOnAwake: 1
aspi: {fileID: 0} m_Volume: 1
WalkAnimSpeed: 0 m_Pitch: 1
WalkAnimAngle: 0 Loop: 1
EjectSpinSpeed: 0 Mute: 0
Spatialize: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 0
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 0
--- !u!4 &76822471
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 76822469}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.71010804, y: -0.021637373, z: 0.11328125}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
--- !u!114 &1027139440 stripped --- !u!114 &1027139440 stripped
MonoBehaviour: MonoBehaviour:
m_PrefabParentObject: {fileID: 11471614, guid: 198e988adacced646a19f757f6237ae1, m_PrefabParentObject: {fileID: 11471614, guid: 198e988adacced646a19f757f6237ae1,
@ -157,11 +294,6 @@ Prefab:
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 158e745881137e04ca2086294f44d74c, type: 2} m_ParentPrefab: {fileID: 100100000, guid: 158e745881137e04ca2086294f44d74c, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
--- !u!212 &1106066633 stripped
SpriteRenderer:
m_PrefabParentObject: {fileID: 21220066, guid: acd71c7b2f995984d9033c9dc4e257dc,
type: 2}
m_PrefabInternal: {fileID: 1660116367}
--- !u!1001 &1223268487 --- !u!1001 &1223268487
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -201,6 +333,10 @@ Prefab:
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 1 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 11485214, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: NextSpawnTime
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2} m_ParentPrefab: {fileID: 100100000, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
@ -243,6 +379,10 @@ Prefab:
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 2 value: 2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 11401034, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: gaugeMax
value: 100
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 198e988adacced646a19f757f6237ae1, type: 2} m_ParentPrefab: {fileID: 100100000, guid: 198e988adacced646a19f757f6237ae1, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
@ -293,42 +433,10 @@ Prefab:
propertyPath: m_Name propertyPath: m_Name
value: Astronaut_1 value: Astronaut_1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2} - target: {fileID: 11434752, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_AngularDrag propertyPath: PlayerNumber
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_IsKinematic
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_UseGravity
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Mass
value: 1 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Center.y
value: 1.31
objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Height
value: 1.59
objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Radius
value: 0.76
objectReference: {fileID: 0}
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: SpriteWalk
value:
objectReference: {fileID: 1106066633}
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: EjectSpeed
value: 50
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2} m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0

View File

@ -0,0 +1,505 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 6
m_GIWorkflowMode: 1
m_LightmapsMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 3
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AOMaxDistance: 1
m_Padding: 2
m_CompAOExponent: 0
m_LightmapParameters: {fileID: 0}
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
m_RuntimeCPUUsage: 25
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &993170680
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 993170681}
m_Layer: 0
m_Name: World
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &993170681
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 993170680}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.3277891, y: 0.28751588, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1589474789}
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!114 &1027139440 stripped
MonoBehaviour:
m_PrefabParentObject: {fileID: 11471614, guid: 198e988adacced646a19f757f6237ae1,
type: 2}
m_PrefabInternal: {fileID: 1469146136}
m_Script: {fileID: 11500000, guid: 43d953650863ce04d8918939e0248654, type: 3}
--- !u!1001 &1072533353
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalPosition.x
value: -0.6692338
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalPosition.y
value: 1.7862048
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalPosition.z
value: -0.045327663
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 498212, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 11450178, guid: 158e745881137e04ca2086294f44d74c, type: 2}
propertyPath: InputMapperAsset
value:
objectReference: {fileID: 11400000, guid: ba52e0f13249c9e46bb162622e61904f,
type: 2}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 158e745881137e04ca2086294f44d74c, type: 2}
m_IsPrefabParent: 0
--- !u!1001 &1223268487
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 456206, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: e86e27c7b6d9c824cb76115e90a15cac, type: 2}
m_IsPrefabParent: 0
--- !u!1 &1408525986 stripped
GameObject:
m_PrefabParentObject: {fileID: 170392, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_PrefabInternal: {fileID: 1660116367}
--- !u!114 &1408525987
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1408525986}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 77462b2431858f84b9bc2d055c2f4d45, type: 3}
m_Name:
m_EditorClassIdentifier:
aspi: {fileID: 0}
WalkAnimSpeed: 0
WalkAnimAngle: 0
EjectSpinSpeed: 0
--- !u!1001 &1469146136
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 993170681}
m_Modifications:
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalPosition.x
value: 0.3277891
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalPosition.y
value: -0.28751588
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 21256968, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_Color.g
value: 1
objectReference: {fileID: 0}
- target: {fileID: 21256968, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_Color.b
value: 1
objectReference: {fileID: 0}
- target: {fileID: 21256968, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: m_Color.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 11401034, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: CriticalMin
value: 0.2
objectReference: {fileID: 0}
- target: {fileID: 11401034, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: CriticalMax
value: 0.6
objectReference: {fileID: 0}
- target: {fileID: 11401034, guid: 198e988adacced646a19f757f6237ae1, type: 2}
propertyPath: testValue
value: 0.3
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 198e988adacced646a19f757f6237ae1, type: 2}
m_IsPrefabParent: 0
--- !u!4 &1589474789 stripped
Transform:
m_PrefabParentObject: {fileID: 421424, guid: 198e988adacced646a19f757f6237ae1, type: 2}
m_PrefabInternal: {fileID: 1469146136}
--- !u!1001 &1660116367
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalPosition.z
value: 0.11
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 494126, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 11494368, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: planet
value:
objectReference: {fileID: 1027139440}
- target: {fileID: 154602, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Name
value: Astronaut_1
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_AngularDrag
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_IsKinematic
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_UseGravity
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5402556, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Mass
value: 1
objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Center.y
value: 1.31
objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Height
value: 1.59
objectReference: {fileID: 0}
- target: {fileID: 13683032, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
propertyPath: m_Radius
value: 0.76
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: acd71c7b2f995984d9033c9dc4e257dc, type: 2}
m_IsPrefabParent: 0
--- !u!1001 &1867085521
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 483280, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 8347d06db0c264442891d12282c4a4dd, type: 2}
m_IsPrefabParent: 0
--- !u!1 &1945693977
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1945693982}
- 20: {fileID: 1945693981}
- 92: {fileID: 1945693980}
- 124: {fileID: 1945693979}
- 81: {fileID: 1945693978}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1945693978
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1945693977}
m_Enabled: 1
--- !u!124 &1945693979
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1945693977}
m_Enabled: 1
--- !u!92 &1945693980
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1945693977}
m_Enabled: 1
--- !u!20 &1945693981
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1945693977}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
m_StereoMirrorMode: 0
--- !u!4 &1945693982
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1945693977}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 82fa8de0062e32d4ca4a526524a750db
timeCreated: 1460168735
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant: