Beispiel #1
0
    void Start()
    {
        current_player = 0;
        PlatformerCharacter2D current = playerList[current_player].GetComponent <PlatformerCharacter2D>();
        //current.setAsFocus();

        MoveCamera cameraMovement = camera.GetComponent <MoveCamera>();
        Transform  current_transf = playerList[current_player].GetComponent <Transform>();

        cameraMovement.SetPlayerScript(current);
        cameraMovement.changeTarget(current_transf);
    }