コード例 #1
0
    private void OnEnable()
    {
        source    = (SpawnCheckPointManager)target;
        sourceRef = serializedObject;

        SceneView.duringSceneGui += OnSceneGUI;

        GetProperties();
    }
コード例 #2
0
    private void OnEnable()
    {
        source    = (SpawnCheckPointManager)target;
        sourceRef = serializedObject;

        SceneView.onSceneGUIDelegate += OnSceneGUI;

        GetProperties();
        GetFurthestCheckPointDistance();
        PositionCamera();
    }
コード例 #3
0
    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;
        }
    }