void Start() { level2Manager = this; GameManager.gameManager.ChangeCursor(true); GameManager.gameManager.InitialFade(); GameManager.gameManager.TextFading(); }
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()); }
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; }