Exemple #1
0
    // Begin method called when action starts
    public override void Begin(NarrativeEvent newEvent)
    {
        base.Begin(newEvent);

        type_ = ACTIONTYPE.CAMERAMOVE;

        cameraController = Camera.main.GetComponent <CameraController>();

        for (int i = 0; i < cameraGoto_.Length; i++)
        {
            cameraController.AddGotoPosition(cameraGoto_[i]);
        }
    }