override error

Options
nefertu
nefertu
edited September 2021 in Photon Bolt
Hello there. I'm new to Bolt. It progresses with the documentation, but I get an error. I am sharing the error and codes here. I would be very happy if you could help :)
using UnityEngine;
using System.Collections;
using Photon.Bolt;



public class NetworkCallbacks : GlobalEventListener 
{
  
    public override void SceneLoadLocalDone(string scene)
    {
        
        // randomize a position
        var spawnPosition = new Vector3(Random.Range(-16, 16), 0, Random.Range(-16, 16));

        // instantiate cube
        BoltNetwork.Instantiate(BoltPrefabs.Cube, spawnPosition, Quaternion.identity);
        
    }
    
}

error: Assets\Tutorial\Scripts\NetworkCallbacks.cs(10,26): error CS0115: 'NetworkCallbacks.LoadScene(string)': no suitable method found to override

Best Answer

Answers