|
|
@@ -23,13 +23,16 @@ public class Platform : MonoBehaviour
|
|
|
{
|
|
|
|
|
|
Foot foot = other.GetComponent<Foot>();
|
|
|
- if (foot != null && foot.transform.parent.gameObject.layer != 8)
|
|
|
+ if (foot != null && foot.transform.parent.gameObject.layer != 8 && !foot.notOnGiant)
|
|
|
{
|
|
|
if (Mathf.Abs(foot.transform.position.x - transform.position.x) > edgeDistance)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- foot.trigGroundList.Add(gameObject);
|
|
|
+ if(!foot.trigGroundList.Exists(t=>t == gameObject))
|
|
|
+ {
|
|
|
+ foot.trigGroundList.Add(gameObject);
|
|
|
+ }
|
|
|
feet.Add(foot);
|
|
|
if (foot.myBaGuaTrigger != null)
|
|
|
{
|