private void Start() { _controlledMob = GetComponent <Mob>(); if (!Spawned) { _controlledMob.enabled = false; } Assets.Scripts.Controllers.VisionController vc = _controlledMob.GetVisionController(); Debug.LogWarning("Setting player's position..."); vc.SetViewerPosition(_controlledMob); }
public void SetLocalPlayer(Mob mob) { _localPlayerMob = mob; _visionController.SetViewerPosition(mob); }