Esempio n. 1
0
    protected override void Start()
    {
        base.Start();

        missileReloadingBar = ((GameObject)Instantiate(Resources.Load<GameObject>("Prefabs/ProgressBar"), transform.position + missileReloadingBarPlacement, Quaternion.identity)).GetComponent<ProgressBar>();
        missileReloadingBar.transform.parent = transform;
        missileReloadingBar.SetColour(Color.yellow);

        missileFireTimer = new Timer(timeBetweenFiringMissiles, false);
        missileFireTimer.activate += FireMissile;
        missileFireTimer.Start();
    }