Inheritance: MonoBehaviour
    void Start()
    {
        level2Manager = this;

        GameManager.gameManager.ChangeCursor(true);
        GameManager.gameManager.InitialFade();
        GameManager.gameManager.TextFading();
    }
Example #2
0
 void Start()
 {
     Instance = this;
     StartCoroutine(SetPosition());
     Player.GetComponent <PlayerController>().SetTarget(Friend.transform);
     Player.GetComponent <PlayerController>().agent.stoppingDistance = 2;
     Player.SpawnPoint = new Vector3(-10, 0, -30);
     Player.GetComponent <BasePlayer>().PlayBlackFadeIn();
     StartCoroutine(SetPosition());
 }
Example #3
0
 private void Awake()
 {
     moveGateDown = new Vector3(0, 0.2f, 0);
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     soundEffects = GetComponent <AudioSource>();
     player       = GameObject.FindGameObjectWithTag("Player");
     myLevel      = 2;
 }