// 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(); } }
public CivScripts(IInterfaceCommands uInterfaceCommands, StringBuilder log, Game game) { _game = game; ui = new UIScripts(uInterfaceCommands, log); scen = new ScenarioHooks(game); core = new AxxExtensions(game, log); }
// 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; }
// 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> (); }
IEnumerator Example() { yield return(new WaitForSeconds(playerStayTime)); if (win) { ScoreScript.Score++; Debug.Log("Score =" + ScoreScript.Score); UIScripts.Replay(); } }
// 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> (); }
// 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; }
// Start is called before the first frame update void Start() { UIScripts = GetComponent <UIScripts>(); }