Remake prefabs
This commit is contained in:
1 parent
d25e7cd1e8
commit
04ed79438f
9 files changed
+106
-128
No files matched your search
@@ -111,7 +111,13 @@ public class PlayerController : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
if (other.GetContact(0).normal == other.transform.forward || other.GetContact(0).normal == -other.transform.forward)
|
||||
if (other.GetContact(0).normal == other.transform.forward
|
||||
|| other.GetContact(0).normal == -other.transform.forward
|
||||
|| (other.GetContact(0).normal != -other.transform.up
|
||||
&& other.GetContact(0).normal != other.transform.up
|
||||
&& other.GetContact(0).normal != other.transform.right
|
||||
&& other.GetContact(0).normal != -other.transform.right)
|
||||
)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -127,7 +133,13 @@ public class PlayerController : MonoBehaviour
|
||||
if (other.gameObject.tag == "platform")
|
||||
{
|
||||
|
||||
if (other.GetContact(0).normal == other.transform.forward || other.GetContact(0).normal == -other.transform.forward)
|
||||
if (other.GetContact(0).normal == other.transform.forward
|
||||
|| other.GetContact(0).normal == -other.transform.forward
|
||||
|| (other.GetContact(0).normal != -other.transform.up
|
||||
&& other.GetContact(0).normal != other.transform.up
|
||||
&& other.GetContact(0).normal != other.transform.right
|
||||
&& other.GetContact(0).normal != -other.transform.right)
|
||||
)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user