Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        playerAttackAnimator = GetComponent <PlayerAttackAnimator>();
        playerAttackSFX      = GetComponent <AudioSource>();

        playerTurner = GetComponent <PlayerTurner>();

        finalTrackSlotManager = Track.finalTrack.GetComponent <TrackSlotManager>();

        topSlot    = finalTrackSlotManager.slots[0].GetComponent <TrackSlot>();
        rightSlot  = finalTrackSlotManager.slots[1].GetComponent <TrackSlot>();
        bottomSlot = finalTrackSlotManager.slots[2].GetComponent <TrackSlot>();
        leftSlot   = finalTrackSlotManager.slots[3].GetComponent <TrackSlot>();
    }
Exemple #2
0
 private void Start()
 {
     playerEnemyCounter = GetComponent <PlayerEnemyAttack>();
     playerTurner       = GetComponent <PlayerTurner>();
 }