private void OnEnable() { source = (SpawnCheckPointManager)target; sourceRef = serializedObject; SceneView.duringSceneGui += OnSceneGUI; GetProperties(); }
private void OnEnable() { source = (SpawnCheckPointManager)target; sourceRef = serializedObject; SceneView.onSceneGUIDelegate += OnSceneGUI; GetProperties(); GetFurthestCheckPointDistance(); PositionCamera(); }
protected override void GetComponents() { base.GetComponents(); //get components var gm = GameManager.instance; if (gm) { dataManager = gm.GetUserDataManager(); spawnManager = gm.GetSpawnManager(); skinManager = gm.GetSkinManager(); gm.SpawnedPlayer = this; } }