From f20d8340bb0e3c1b67ce30417b6f5769405fc2f6 Mon Sep 17 00:00:00 2001 From: Shaun M Reed Date: Sun, 3 Sep 2017 15:58:42 -0400 Subject: [PATCH] Added rotation count Added rotation count to SpinningCube.cs -Change increment to change amount of speed added per level --- Assets/Prefabs/Cube.prefab | Bin 11044 -> 11044 bytes Assets/Scenes/Main.unity | Bin 106000 -> 113368 bytes Assets/Scripts/ExperienceBar.cs | 1 + Assets/Scripts/SpinningCube.cs | 39 ++++++++++++++++++++++++++----- ProjectSettings/TagManager.asset | Bin 4340 -> 4376 bytes 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Assets/Prefabs/Cube.prefab b/Assets/Prefabs/Cube.prefab index 0d60c46309832742460a93b67a177d2c82895645..e9836f5eb05a5f1e2425b9f0b23f78a67871399a 100644 GIT binary patch literal 11044 zcmeHNdypJO9qzfiB;+AP1w|fV^CFOhBjFhym+ao&B^JiB>e^Md}<#rq>8Bi3QS z{@RFtMn;}>Z`j-Tt3U2Z|NG79$NproKO5*?)CSa-8-#zh5I$ZRK@)dESopJ}QTX>* z!fyg(g_U1KYaw`8iBBNDi+GddKNjzhn_P;gN%Y|U(xCrD;y#~^6T^^m1KN~x z5^-6_8*)yL;88jGj_N;7T!1lMv?-Jk7S;pB_`#az}aI%P4q zKGy7Vv*k*^;|^xBu3h%fVQH~sceLRqll2DVP4txtSe=cw>kUUy;bq-|?TL-SGrlT@ zvZbmmoW4u#oVUjAx51yY!MnyDbcXDF+8NyFlrd&Sj>XZH!0h5U-m>hVy-L0eprfLm z1yXV~U={CpntG7H~}d zTEMZyBUqna&~j}Ua9HB@AOlW-N7ttoaMbz~(1+_&3pfgYJJ|RbaD+(8b;DZvLugs3 zI^bk7o_l_KzUVn_`)1EBSK!Kv;T5A@HFPQw-es~ySLC#_;jPZ>uf5C+@3{X&$arlas|S7m zKl>X4@lfEm(%Ae*zEvmNrj+6Cxq)W;^t{2rb$HZ7PbNixzSE zTNFPZE#maID83ji;>zF1k8!d7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QGL6F8^-5{rE9E(7sc8?ozN0qZ#4~cDsFk`4Xd*7|IjrCXaE2J diff --git a/Assets/Scripts/ExperienceBar.cs b/Assets/Scripts/ExperienceBar.cs index a35c851..768a1b2 100644 --- a/Assets/Scripts/ExperienceBar.cs +++ b/Assets/Scripts/ExperienceBar.cs @@ -67,6 +67,7 @@ public class ExperienceBar : MonoBehaviour { previousExpRequired = expRequired; expObtained = 0; expRequired = Mathf.Pow(expRequired, 1.05f); + GameObject.FindGameObjectWithTag("Player").GetComponent().RaiseRotationSpeed(); } public void ResetExp() diff --git a/Assets/Scripts/SpinningCube.cs b/Assets/Scripts/SpinningCube.cs index 339efb4..ce4f7be 100644 --- a/Assets/Scripts/SpinningCube.cs +++ b/Assets/Scripts/SpinningCube.cs @@ -8,12 +8,18 @@ public class SpinningCube : MonoBehaviour private string RotationDirection = "Up"; - private Vector3 m_RotationDirection = Vector3.up; + private Vector3 m_RotationDirection = Vector3.up; + private Vector3 rotationOrigin; private Vector3 stopRotation = Vector3.zero; private Vector3 tempRotation; + private float angle2 = 0; + private float angledif, angle1; + private float angleSum = 0; + [SerializeField] + private int rotations; - public void ToggleRotationDirection() + public void ToggleRotationDirection() { if (m_RotationDirection == Vector3.up) @@ -105,12 +111,33 @@ public class SpinningCube : MonoBehaviour gameObject.GetComponent().material.color = Color.cyan; } - void Update() - { - transform.Rotate(m_RotationDirection * Time.deltaTime * m_Speed); - } + public void Start() + { + Vector3 rotationOrigin = GameObject.FindGameObjectWithTag("Player").transform.rotation.eulerAngles; + } + void FixedUpdate() + { + //Set angle1 = eulerAngle of axis being rotated prior to applying rotation + angle1 = this.gameObject.transform.rotation.eulerAngles.y; + transform.Rotate(m_RotationDirection * Time.deltaTime * m_Speed); + //angle2 = eulerAngle of axis after rotation applied + angle2 = this.gameObject.transform.rotation.eulerAngles.y; + //Difference between angle2 and angle1, how much the object rotated between frames + angledif = angle2 - angle1; + //rotations += (int)(m_Speed / 360); + + //if object is rotating, and angle difference is less than 0 + //If object has rotated 20 degrees (m_speed = 20), when angle1 = 350, && angle2 = 10 + //angle2(10)-angle1(350) = -340 + //Object has rotated past 360 + if ((m_Speed > 0) && (angledif < 0)) + { + ++rotations; + GameObject.FindGameObjectWithTag("ExpGained").GetComponent().ExpMore(); + } + } } diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 797d6046c63a57b3132ecf4260d579060af2393d..8d1360ae557ad8301155fa311d01a665396e086f 100644 GIT binary patch delta 71 zcmeyOI75kpfr05S1B0N%Mvfm$OcIQn8JYj_FfvbO6cAPh$}#w4re~C7=A{b**+Kaw Zi6xo&dA_N6rB05WPZ;xS%F!Ak#RDkfbe7sfd>HTwhMm%