private void Awake()
    {
        playerObject = GameObject.FindGameObjectWithTag("Player");

        characterData          = GetComponent <CharacterData>();
        characterVisualUpdater = GetComponent <SpriteAnimation>();
        rigidBody      = GetComponent <Rigidbody2D>();
        weaponSelector = GetComponent <CharacterWeaponSelect>();
    }
Exemple #2
0
 void Awake()
 {
     interaction  = GetComponent <CharacterAttack>();
     movement     = GetComponent <CharacterMovement>();
     weaponSelect = GetComponent <CharacterWeaponSelect>();
 }