void OnDestroy()
 {
     if (LocalInstance == this)
     {
         LocalInstance = null;
     }
 }
    public override void OnStartLocalPlayer()
    {
        LocalInstance = this;

        foreach (var renderer in GetComponentsInChildren <Renderer>())
        {
            renderer.enabled = false;
        }
    }
示例#3
0
 void Awake()
 {
     instance = this;
 }