Exemplo n.º 1
0
 void Start()
 {
     healthbar = GetComponent<FloatingHealthbar>();
     health = maxHealth;
     player = GameObject.Find ("Player").transform;
     opponent = player.GetComponent<PlayerHealthbarController>();
 }
Exemplo n.º 2
0
    void Start()
    {
        // Initalize required components
        animator = GetComponent<Animator>();
        movementController = GetComponent<PlayerMovementController>();

        //initalize the needed scripts script
        wpnManager = GetComponent <WeaponManager>();
        playerHealth = GetComponent <PlayerHealthbarController>();

        chargedRing.fillAmount = 0f;
    }