public void AssignActivePlayer(PlatformMovement3D targetPlayer) { activePlayer = targetPlayer; transform.SetParent(activePlayer.transform.Find(containerName)); //transform.localPosition = idlePoint; transform.rotation = targetPlayer.transform.rotation; triggerArea.enabled = false; }
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); }