private void Start()
    {
        playerControllerRed  = playerBlue.GetComponent <PlayerController>();
        playerControllerBlue = playerRed.GetComponent <PlayerController>();

        redPortalScript  = redPortal.GetComponent <PortalManagerRed>();
        bluePortalScript = bluePortal.GetComponent <PortalManagerBlue>();
        StartSwitchPlayer();
    }
예제 #2
0
 private void Start()
 {
     redPortalScript  = redPortal.GetComponent <PortalManagerRed>();
     bluePortalScript = bluePortal.GetComponent <PortalManagerBlue>();
 }