public void AssignActivePlayer(PlatformMovement3D targetPlayer)
 {
     activePlayer = targetPlayer;
     transform.SetParent(activePlayer.transform.Find(containerName));
     //transform.localPosition = idlePoint;
     transform.rotation  = targetPlayer.transform.rotation;
     triggerArea.enabled = false;
 }
示例#2
0
 public void AssignActivePlayer(PlatformMovement3D targetPlayer)
 {
     activePlayer = targetPlayer;
     transform.SetParent(activePlayer.transform.Find(containerName));
     //transform.localPosition = idlePoint;
     transform.rotation  = targetPlayer.transform.rotation;
     triggerArea.enabled = false;
     GetComponent <Animator> ().SetFloat("idleSpeed", 0.5f);
 }