From 17c4fdf5ef006468ca273be67b665d84d3075f15 Mon Sep 17 00:00:00 2001 From: new-00-0ne Date: Sat, 30 Jan 2016 02:38:33 -0500 Subject: [PATCH] Early version of Platforms (x1, x2, x4) and sprite changes for all -Caleb And Don added something to the GameManager.cs --- Assets/Resources/Prefabs.meta | 9 ++++ .../Prefabs/Platform_DefaultSprite.prefab | Bin 0 -> 6556 bytes .../Platform_DefaultSprite.prefab.meta | 8 ++++ Assets/Resources/Prefabs/x2_Platform.prefab | Bin 0 -> 7348 bytes .../Resources/Prefabs/x2_Platform.prefab.meta | 8 ++++ Assets/Resources/Prefabs/x4_Platform.prefab | Bin 0 -> 8420 bytes .../Resources/Prefabs/x4_Platform.prefab.meta | 8 ++++ .../Resources/Scenes/PlatformTestScene.unity | Bin 0 -> 10196 bytes .../Scenes/PlatformTestScene.unity.meta | 8 ++++ Assets/Resources/Scripts.meta | 4 +- Assets/Resources/Scripts/GameManager.cs | 1 + Assets/Resources/Scripts/Platform.cs | 44 ++++++++++++++++++ Assets/Resources/Scripts/Platform.cs.meta | 12 +++++ ProjectSettings/EditorSettings.asset | Bin 4212 -> 4212 bytes ProjectSettings/ProjectSettings.asset | Bin 38397 -> 38397 bytes ProjectSettings/ProjectVersion.txt | 2 +- 16 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 Assets/Resources/Prefabs.meta create mode 100644 Assets/Resources/Prefabs/Platform_DefaultSprite.prefab create mode 100644 Assets/Resources/Prefabs/Platform_DefaultSprite.prefab.meta create mode 100644 Assets/Resources/Prefabs/x2_Platform.prefab create mode 100644 Assets/Resources/Prefabs/x2_Platform.prefab.meta create mode 100644 Assets/Resources/Prefabs/x4_Platform.prefab create mode 100644 Assets/Resources/Prefabs/x4_Platform.prefab.meta create mode 100644 Assets/Resources/Scenes/PlatformTestScene.unity create mode 100644 Assets/Resources/Scenes/PlatformTestScene.unity.meta create mode 100644 Assets/Resources/Scripts/Platform.cs create mode 100644 Assets/Resources/Scripts/Platform.cs.meta diff --git a/Assets/Resources/Prefabs.meta b/Assets/Resources/Prefabs.meta new file mode 100644 index 0000000..e74295f --- /dev/null +++ b/Assets/Resources/Prefabs.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 77b030cbe6e55b84995e0b19ad5edf41 +folderAsset: yes +timeCreated: 1454137016 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Prefabs/Platform_DefaultSprite.prefab b/Assets/Resources/Prefabs/Platform_DefaultSprite.prefab new file mode 100644 index 0000000000000000000000000000000000000000..934b28d439293267809d7b45280cf3bf594cfd90 GIT binary patch literal 6556 zcmd^DU2I%O8J+9jy3mA@KvHVbZIk|`#BF|>7TPB3_$P5|$HtBWR4UQ+?)C0XclVmR z*KS-XVv$OviU-u9N|h)miK>c}NG+9sf&|S2RfPmRIWIf}c<4ir5Ni5RAyCXY^Uds? zyWUjEBjP6Gy>n*nnVE0C^L=x#Qk!-ub<3+tsr5>2n!>MoaA5bquKAtn%IfN>*9`!_ zt1mu&~7v!gffeCfXT-^iigJc@_X>#4>=N;UW# zs<5cRKh0cy2@e2Gb_}J@tHt zYW&XdaNg~BdK}#4>22bk+5?^?!^1HK+svoW!Cjsko4BV=VV+Nchb#OPiZ>{8q8*+9 z&UJCk)(&Ni`*$<$O~84z+F_l>1b4^9?lpN1f&ZuAq5VHYyrKJhJ7G^2;x`k|6Ytb^ zz7@}KKA$D7OQ-rO`W{DNeM1xX6!~`>{*A;Ne5NDA|2g7$;#q#~XFL8)P25xW;C?R( zZL=AL8{KM$TL60ockS?nChqBVJ%&2hbt{VScxo88M^VV%kJ66+i-6nlZ)xIYe_2PN zKdLdMrlykk(UD@9MDfUpB&gNHsJ2g4kBx?vU~CvSQ+`s$jqbN?W+4ufV4te%U*#8z zhZn1+?Vw)`Cg+X^g=C*vh=X~5PKEU;KMrb%9`WZ}dVcxjx_i!EzI-4){_w^X&LBkL zYR_TU{+AVa0Uky#pr>M!tpYP1mMSpoVW|Q;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#8jfx&i_X&R|% znRF7TJBxQ{m2>g7Fh(*So{sBDV%8|rXg`fwQdN&>!xG|`24}8tpLvf8XUTy1<#_H> zRlj#fX_?2dNsRF$bN-Zh?@lwe8WW!f{AyM8dppe7^=6Fw_ATbUyUf^KW^60Qwwke> zX6$K4?s;ZR35LEddNi~~Wss8iuI!V9ii znCu>|?8(4}+l2UOdlS`0^i8d8q;8LX{fsL#%{{ptOFrNBSX63zVE65Kx3=-Xoa<((OVk6@;~o_yjYGnhP||V|w3Lh>P2QzJEW~+fXulA3moUYanRu zFu+kH7W@5mZi9<(V-K_+7He0uH5O}wv`ZFiuWU0=^?80dZGNqycd>7}B$-jPo@c-_ z0P8dVjr5f1#eE%ZyYIcX?Sq2{+ot#IF?P#kXuG&~*Didcn>&OUZzp|t_p&U;p5>1q nETnXciY;of>Fo9EpLF=SR5ROFPmLp#!It#%Rwn(lc>VcL2PZ#7 literal 0 HcmV?d00001 diff --git a/Assets/Resources/Scenes/PlatformTestScene.unity.meta b/Assets/Resources/Scenes/PlatformTestScene.unity.meta new file mode 100644 index 0000000..988a73c --- /dev/null +++ b/Assets/Resources/Scenes/PlatformTestScene.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 72a1b0a7d41c0424083f12b50eaa8b53 +timeCreated: 1454122295 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scripts.meta b/Assets/Resources/Scripts.meta index 4aa39f6..6b049ad 100644 --- a/Assets/Resources/Scripts.meta +++ b/Assets/Resources/Scripts.meta @@ -1,7 +1,7 @@ fileFormatVersion: 2 -guid: b429bbc6158b76c4dbab3e6bf3519827 +guid: 3fa83265e1d3e234db4e457a26505779 folderAsset: yes -timeCreated: 1454119671 +timeCreated: 1454123185 licenseType: Free DefaultImporter: userData: diff --git a/Assets/Resources/Scripts/GameManager.cs b/Assets/Resources/Scripts/GameManager.cs index 9ae8b37..8aa77e6 100644 --- a/Assets/Resources/Scripts/GameManager.cs +++ b/Assets/Resources/Scripts/GameManager.cs @@ -15,6 +15,7 @@ public class GameManager : MonoBehaviour { if (gManager == null) { + DontDestroyOnLoad(gameObject); gManager = this; iManager = new InputManager(0.1f, 0.2f); tagged_objects = GameObject.FindGameObjectsWithTag("Scene_Object"); diff --git a/Assets/Resources/Scripts/Platform.cs b/Assets/Resources/Scripts/Platform.cs new file mode 100644 index 0000000..53d90db --- /dev/null +++ b/Assets/Resources/Scripts/Platform.cs @@ -0,0 +1,44 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +[ExecuteInEditMode] +public class Platform : MonoBehaviour +{ + public Sprite sprite; + public int addNum; + public GameObject prefab; + public bool isParent = true; + int oldNum = 0; + + // Update is called once per frame + void Update () + { + //Updates all of the children's SpriteRender sprites + foreach (SpriteRenderer i in GetComponentsInChildren()) + { + i.sprite = sprite; + } + + /*Vector3 curPos = this.transform.position; + float scaleX = this.transform.lossyScale.x; + + if (this.gameObject.transform.childCount < addNum && !Application.isPlaying && isParent) + { + for (int i = 0; i < addNum - oldNum; i++) + { + curPos = curPos + new Vector3(scaleX, 0); + GameObject childObj = Instantiate(prefab, curPos, Quaternion.identity) as GameObject; + childObj.GetComponent().isParent = false; + childObj.transform.parent = transform; + curPos = childObj.transform.position; + transform.GetChild(transform.childCount); + } + for (int i = 0; i < oldNum - addNum; i++) + { + Destroy(transform.GetChild(transform.childCount)); + } + oldNum = addNum; + }*/ + } +} diff --git a/Assets/Resources/Scripts/Platform.cs.meta b/Assets/Resources/Scripts/Platform.cs.meta new file mode 100644 index 0000000..d6308ed --- /dev/null +++ b/Assets/Resources/Scripts/Platform.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a62f48d093e14da4688460ed30cf5da0 +timeCreated: 1454130969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset index 75181f1afd5bb300f6baaf9794fe9912d0ba2e31..e06868b7120e107007215756f2a5c094bccc8bb7 100644 GIT binary patch delta 34 pcmeyO@I_$*i-4FA0|P@?W^raxPO5@$YDuDkTV_sb@nk81C;+{o3bX(K delta 26 hcmeyO@I_$*ivX7(0|SFcW=cwG-ei6O(aFjJfdFe~2QmNv diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 654f2ec78df9fd5cbe51f1964aa3878071a61721..0128a2474e2b21bad72b86eb0bc2d1ce587f803f 100644 GIT binary patch delta 14 Wcmeynn(6OqrU?>^MjIucOa%Zl-Uf33 delta 14 Wcmeynn(6OqrU?>^h8rcHOa%Zl*#>d| diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 961ebb9..bb60c06 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 5.3.1f1 +m_EditorVersion: 5.3.2f1 m_StandardAssetsVersion: 0