Beispiel #1
0
    public void AddEnemy()
    {
        Transform RandomPoint = EnemySpawnPoint[Random.Range(0, EnemySpawnPoint.Length - 1)];
        Enemy     newEnemy    = Instantiate(m_EnemyObject, RandomPoint).GetComponent <Enemy>();

        m_Enemy.Add(newEnemy);
        newEnemy.ActivateObject(true);
        newEnemy.m_oPlayer = m_PlayerRole.gameObject;
    }
Beispiel #2
0
 void Start()
 {
     m_AudioSource = GetComponent <AudioSource>();
     m_TutorialUI.gameObject.SetActive(false);
     m_Enemy.Add(m_SequenceEnemy);
     m_SequenceEnemy.ActivateObject(false);
     EnablePlayerInput(false);
     Invoke("FirstSequence", 2.0f);
 }