Exemple #1
0
    public void SetGameStateActivatedObelisk()
    {
        gameState = GameState.ActivatedObelisk;
        player.SetTargetTransform(lander.transform);
        ghostsTrigger.gameObject.SetActive(true);

        enterLanderTrigger.gameObject.SetActive(true);
        System.Action <int> a = (x) => {};
        enterLanderTrigger.events.OnTriggerEnter
        .AddListener((x) =>
        {
            SetGameStateBackInLander();
            SetPlayerBackToLander();
            lander.StartTakeOff();
        });
    }