Beispiel #1
0
    void Start()
    {
        controller = GetComponent <CharacterController>();
        power      = minPower;
        if (!p1)
        {
            horizontal = "AimHP2";
            vertical   = "AimVP2";
            fire       = "FireP2";
        }

        myAmmo = Instantiate(ammoDisplayPrefab, GameData.Canvas.transform).GetComponent <AmmoCount>();
        myAmmo.updateCount(numArrows);
    }
Beispiel #2
0
 void OnDestroy()
 {
     // For the UI to update propperly
     myAmmo.updateCount(-1);
 }