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

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