private void Start() { playerControllerRed = playerBlue.GetComponent <PlayerController>(); playerControllerBlue = playerRed.GetComponent <PlayerController>(); redPortalScript = redPortal.GetComponent <PortalManagerRed>(); bluePortalScript = bluePortal.GetComponent <PortalManagerBlue>(); StartSwitchPlayer(); }
private void Start() { redPortalScript = redPortal.GetComponent <PortalManagerRed>(); bluePortalScript = bluePortal.GetComponent <PortalManagerBlue>(); }