// Use this for initialization
 void Start()
 {
     anim = GetComponent<Animator>();
     walkMechanics = GetComponent<WalkMechanics>();
     jumpMechanics = GetComponent<JumpMechanics>();
     attackMechanics = GetComponent<AttackMechanics>();
 }
    private void Start()
    {
        rigidbody           = GetComponent <Rigidbody> ();
        characterController = GetComponent <CharacterController> ();
        playerAttack        = GetComponent <AttackMechanics> ();
        playerInventory     = GetComponent <InventoryController> ();
        playerInventory.SetInitialBricksInInventory(playerData.startBricksCount);


        UpdatePlayerAttackCone();
    }
    void Start()
    {
        playerAttackController = player.GetComponent <AttackMechanics> ();
        playerInventory        = player.GetComponent <InventoryController> ();

        UpdateCoinsText();

        UpdateAllButtons();

        UpdatePlayerAttackCone();

        UpdatePlayerBricksUI();
    }
Example #4
0
    private void Start()
    {
        player = GameObject.FindGameObjectsWithTag("Player") [0];

        enemyStats     = GetComponent <EnemyStats> ();
        enemyInventory = GetComponent <InventoryController> ();
        attack         = GetComponent <AttackMechanics> ();

        enemyInventory.SetInitialBricksInInventory(enemyStats.bricksStartCount);

        attack.SetThrowInacuracy(enemyStats.inaccuracy);
        attack.SetThrowForce(enemyStats.attackForce);
        attack.UpdateAttackConeUI();
    }
 void Awake()
 {
     walkMechanics = GetComponent<WalkMechanics>();
     jumpMechanics = GetComponent<JumpMechanics>();
     attackMechanics = GetComponent<AttackMechanics>();
 }