Пример #1
0
    void Start()
    {
        audioSource = GetComponent <AudioSource>();
        animator    = GetComponent <Animator>();
        collider2d  = GetComponent <Collider2D>();
        if (hasPartner)
        {
            partnerController = partner.GetComponent <DoorSpriteController>();
        }

        numEnemies = enemies.Count;

        setState(state);
    }
Пример #2
0
 void Start()
 {
     controller  = door.GetComponent <DoorSpriteController>();
     audioSource = GetComponent <AudioSource>();
     triggered   = false;
 }