Update SurvivalIsland
This commit is contained in:
1 parent
83adad7d01
commit
c404a1c315
46 files changed
+210
-42
No files matched your search
@@ -15,6 +15,8 @@ ModelImporter:
|
||||
3300002: generator
|
||||
4300000: generator
|
||||
4300002: chargeMeter
|
||||
6400000: chargeMeter
|
||||
6400002: generator
|
||||
7400000: Default Take
|
||||
11100000: //RootNode
|
||||
materials:
|
||||
@@ -36,12 +38,12 @@ ModelImporter:
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
globalScale: 1.60000002
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
addColliders: 1
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
generateSecondaryUV: 1
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
weldVertices: 1
|
||||
|
||||
@@ -10,6 +10,7 @@ ModelImporter:
|
||||
2300000: powerCell
|
||||
3300000: powerCell
|
||||
4300000: powerCell
|
||||
6400000: powerCell
|
||||
7400000: Default Take
|
||||
11100000: //RootNode
|
||||
materials:
|
||||
@@ -31,12 +32,12 @@ ModelImporter:
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
globalScale: 1.60000002
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
addColliders: 1
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
generateSecondaryUV: 1
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
weldVertices: 1
|
||||
|
||||
@@ -5,8 +5,8 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -25,10 +25,10 @@ TextureImporter:
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@@ -38,8 +38,8 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
|
||||
@@ -5,8 +5,8 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -25,10 +25,10 @@ TextureImporter:
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@@ -38,8 +38,8 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
|
||||
@@ -5,8 +5,8 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -25,10 +25,10 @@ TextureImporter:
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@@ -38,8 +38,8 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
|
||||
@@ -5,8 +5,8 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -25,10 +25,10 @@ TextureImporter:
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@@ -38,8 +38,8 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
|
||||
@@ -5,8 +5,8 @@ TextureImporter:
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -25,10 +25,10 @@ TextureImporter:
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@@ -38,8 +38,8 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: 0
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 70f451542323db24c92ea1d8cbf020dc
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18d4b5d3538b337468cff4be83f9e515
|
||||
TrueTypeFontImporter:
|
||||
serializedVersion: 2
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 1
|
||||
characterPadding: 0
|
||||
includeFontData: 1
|
||||
use2xBehaviour: 0
|
||||
fontNames: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
userData:
|
||||
BIN
Binary file not shown.
File renamed without changes.
@@ -0,0 +1,42 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class Inventory : MonoBehaviour
|
||||
{
|
||||
public static int charge = 0;
|
||||
public AudioClip collectSound;
|
||||
public Texture2D[] hudCharge;
|
||||
public GUITexture chargeHudGUI;
|
||||
|
||||
public Texture2D[] meterCharge;
|
||||
public Renderer meter;
|
||||
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
charge = 0;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CellPickup()
|
||||
{
|
||||
HUDon();
|
||||
AudioSource.PlayClipAtPoint(collectSound, transform.position);
|
||||
charge++;
|
||||
chargeHudGUI.texture = hudCharge[charge];
|
||||
meter.material.mainTexture = meterCharge [charge];
|
||||
}
|
||||
|
||||
void HUDon()
|
||||
{
|
||||
if (!chargeHudGUI.enabled)
|
||||
{
|
||||
chargeHudGUI.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68f5e2be7df12d64a88637557de0017f
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class PowerCell : MonoBehaviour {
|
||||
public float rotationSpeed = 100.0f;
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
transform.Rotate (new Vector3 (0, rotationSpeed * Time.deltaTime, 0));
|
||||
}
|
||||
|
||||
void OnTriggerEnter(Collider col) {
|
||||
if (col.gameObject.tag == "Player") {
|
||||
col.gameObject.SendMessage ("CellPickup");
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84973f37da8c1b64491db40ade6b4948
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class TextHints : MonoBehaviour
|
||||
{
|
||||
float timer = 0.0f;
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (guiText.enabled)
|
||||
{
|
||||
timer += Time.deltaTime;
|
||||
if (timer >= 4)
|
||||
{
|
||||
guiText.enabled = false;
|
||||
timer = 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ShowHint(string message)
|
||||
{
|
||||
guiText.text = message;
|
||||
if (!guiText.enabled)
|
||||
{
|
||||
guiText.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74894e00c3f33fe4eaaacc1394c80eef
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@@ -3,11 +3,43 @@ using System.Collections;
|
||||
|
||||
public class TriggerZone : MonoBehaviour
|
||||
{
|
||||
public AudioClip lockedSound;
|
||||
public Light doorLight;
|
||||
public GUIText textHints;
|
||||
|
||||
void OnTriggerEnter(Collider col)
|
||||
{
|
||||
if (col.gameObject.tag == "Player")
|
||||
{
|
||||
transform.FindChild("door").SendMessage("DoorCheck");
|
||||
if (Inventory.charge == 4)
|
||||
{
|
||||
transform.FindChild("door").
|
||||
SendMessage("DoorCheck");
|
||||
if (GameObject.Find("PowerGUI"))
|
||||
{
|
||||
Destroy(GameObject.Find("PowerGUI"));
|
||||
doorLight.color = Color.green;
|
||||
}
|
||||
}
|
||||
else if (Inventory.charge > 0 && Inventory.charge < 4)
|
||||
{
|
||||
textHints.SendMessage("ShowHint",
|
||||
"This door won't budge.. " +
|
||||
"guess it needs fully charging - " +
|
||||
"maybe more power cells will help...");
|
||||
transform.FindChild("door").audio.
|
||||
PlayOneShot(lockedSound);
|
||||
}
|
||||
else
|
||||
{
|
||||
transform.FindChild("door").audio.
|
||||
PlayOneShot(lockedSound);
|
||||
col.gameObject.SendMessage("HUDon");
|
||||
textHints.SendMessage("ShowHint",
|
||||
"This door seems locked.. maybe that " +
|
||||
"generator needs power...");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
Base path: D:/Unity/Editor/Data
|
||||
Pipe name: \\.\pipe\UnityShaderCompiler-1-25372
|
||||
Pipe name: \\.\pipe\UnityShaderCompiler-1-4216
|
||||
Cmd: getPlatforms
|
||||
Binary file not shown.
Reference in new issue
Block a user