// Use this for initialization void Start() { ui = GameObject.Find("Global").GetComponent <t_UI>(); battle = GameObject.Find("Camera").GetComponent <t_BattleSystem>(); speed = 500.0f; }
// Use this for initialization void Start() { rcd = GameObject.Find("GlobalRecord").GetComponent <GlobalRecord>(); canvas = GameObject.Find("Canvas").GetComponent <Canvas>(); wordDisplay = canvas.frontDisplay; backWordDisplay = canvas.backDisplay; showE = 0.0f; isGameOver = false; // receive database db = rcd.database; // load words LoadWords(db); mainWord = GameObject.Find("mainWord"); battle = GameObject.Find("Camera").GetComponent <t_BattleSystem>(); barHP = GameObject.Find("Camera").GetComponent <HorizontalBar>(); blur = GameObject.Find("Camera").GetComponent <BlurEffect>(); blur.enabled = false; isDead = false; // initial Initial(); levelNum = 3; levelNow = 1; }
//rivate float speed; // Use this for initialization void Start() { monster = GameObject.Find("MonsterWall"); camera = GameObject.Find("Camera"); battle = camera.GetComponent <t_BattleSystem>(); firstWord.renderer.material = battle.firstWord.mat_t; secondWord.renderer.material = battle.secondWord.mat_t; //gameObject.transform.position = camera.transform.position; //speed = 450.0f; }
// Use this for initialization void Start() { ui = GameObject.Find("Global").GetComponent <t_UI>(); battle = GameObject.Find("Camera").GetComponent <t_BattleSystem>(); string name = gameObject.transform.name; cardIdx = int.Parse(name.Remove(0, 4)); positive = GameObject.Find("Card-positive-" + cardIdx.ToString()); negative = GameObject.Find("Card-negative-" + cardIdx.ToString()); anim = gameObject.GetComponent <Animation>(); anim.clip = anim.GetClip("CreateCard" + cardIdx.ToString()); anim.Play(); isSelect = false; }