示例#1
0
 void OnTriggerEnter2D(Collider2D coll)
 {
     if (!nextPlatformActivated && coll.tag == GameplayConstants.TAG_Player)
     {
         nextPlatformActivated = true;
         pm.AddPlatformSection();
     }
 }
示例#2
0
 void OnTriggerEnter2D(Collider2D coll)
 {
     if (nextPlatformActivated || !coll.CompareTag(TagNames.PLAYER))
     {
         return;
     }
     nextPlatformActivated = true;
     pm.AddPlatformSection();
 }