Example #1
0
	// Use this for initialization
	void Start () {

		//foeData = GameObject.FindGameObjectWithTag ("Database").GetComponent<FoeDatabase>();
		displays = GameObject.FindGameObjectWithTag ("Background").GetComponent<UIScripts>();
		player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player>();

	}
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         UIScripts.GameOver();
     }
 }
Example #3
0
 public CivScripts(IInterfaceCommands uInterfaceCommands, StringBuilder log, Game game)
 {
     _game = game;
     ui    = new UIScripts(uInterfaceCommands, log);
     scen  = new ScenarioHooks(game);
     core  = new AxxExtensions(game, log);
 }
Example #4
0
	// Use this for initialization
	void Start () {

		player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player> ();
		displays = GameObject.FindGameObjectWithTag ("Background").GetComponent<UIScripts> ();
		foeData = GameObject.FindGameObjectWithTag ("Database").GetComponent<FoeDatabase> ();
		attributes = gameObject.GetComponent<Physical> ();
		bossIsActive = true;
	}
Example #5
0
	// Use this for initialization
	void Start () {
	
	//	database = GameObject.FindGameObjectWithTag ("Database");
		//attData = database.GetComponent<AttackDatabase> ();
		player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player> ();
		displays = GameObject.FindGameObjectWithTag ("Background").GetComponent<UIScripts> ();
	
	}
Example #6
0
    IEnumerator Example()
    {
        yield return(new WaitForSeconds(playerStayTime));

        if (win)
        {
            ScoreScript.Score++;
            Debug.Log("Score =" + ScoreScript.Score);
            UIScripts.Replay();
        }
    }
Example #7
0
	// Use this for initialization
	void Start () {
	
		database = GameObject.FindGameObjectWithTag ("Database");
		displays = GameObject.FindGameObjectWithTag ("Background").GetComponent<UIScripts> ();
		spec = GameObject.FindGameObjectWithTag ("Background").GetComponent<Specials> ();
		specIt = GameObject.FindGameObjectWithTag ("Background").GetComponent<SpecialItems> ();
		player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player> ();
		itemData = database.GetComponent<ItemData> ();
		attData = database.GetComponent<AttackDatabase> ();

	
	}
Example #8
0
	// Use this for initialization
	void Start () {

		database = GameObject.FindGameObjectWithTag ("Database");
		if (GameObject.FindGameObjectWithTag ("Background")) {
			displays = GameObject.FindGameObjectWithTag ("Background").GetComponent<UIScripts> ();
			spec = GameObject.FindGameObjectWithTag ("Background").GetComponent<Specials> ();
		}

		itemData = database.GetComponent<ItemData> ();
		maxHealth = health;
		maxMagic = magic;
		maxEnergy = energy;
		anim = GetComponent<Animator> ();
		resetMagicTimer = magicTimer;
		resetSpecialTimer = specialTimer;

		//Used to allow the player to move around on the screen.
		pos = gameObject.transform.position;
	}
Example #9
0
 // Start is called before the first frame update
 void Start()
 {
     UIScripts = GetComponent <UIScripts>();
 }