private void OnTriggerExit(Collider other)
 {
     if (other.gameObject.layer == Constants.PlayerLayer)
     {
         PlatformHelpers.WaitForPlatformExit = false;
         PlatformHelpers.IgnorePlayerPlatform(false, "OnTriggerExit");
         GameObject.Find("Player").GetComponent <Player>().SetParentPlatform();
     }
 }
Beispiel #2
0
 public void OnMoveDown(Vector3 dir)
 {
     //Debug.Log("OnMove Down");
     rb.AddForce(dir * speed);
     PlatformHelpers.IgnorePlayerPlatform(true, "OnMoveDown", true);
 }
Beispiel #3
0
 public void OnMoveUp(Vector3 dir)
 {
     //Debug.Log("OnMove Up");
     PlatformHelpers.IgnorePlayerPlatform(true, "OnMoveUp");
     rb.AddForce(dir * speed * upMoveKoef);
 }