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