This commit is contained in:
GamerClassN7
2022-01-28 22:27:24 +01:00
parent 3ee243bd57
commit 314fc55a0a
4 changed files with 102 additions and 325 deletions

View File

@@ -63,6 +63,9 @@ public class PlayerController : MonoBehaviour
if (collision.gameObject.tag == "platform")
{
this.gameObject.transform.rotation = collision.gameObject.transform.rotation;
Physics.gravity = (collision.gameObject.transform.rotation * Vector3.forward);
Debug.Log(Physics.gravity);
//Physics.gravity = -Physics.gravity;
}
}
}

View File

@@ -38,6 +38,6 @@ public class PostProcessingController : MonoBehaviour
emmisionStep++;
renderer.material.SetColor("_EmissionColor", color);
Debug.Log(color);
//Debug.Log(color);
}
}