// 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() { ui = GameObject.Find("Global").GetComponent <t_UI>(); monster = GameObject.Find("MonsterWall"); monster.renderer.material = mat_black_monster; monsterCreateTime = CreateTime; //sparkle_monster = (GameObject)Instantiate(sparkle); //sparkle_monster.transform.position = new Vector3(7.677217f, 76.90249f, 88.65485f); monsterAttackTime = 0.0f; isTermAttack = false; remainWordIdx = new int[4]; bulletTime = 0.0f; isFireBall = false; isRecover = false; HP_player_max = 1500; HP_enemy_max = 500; HP_player_now = 0; HP_enemy_now = 0; ATK_player = 100; ATK_enemy = 140; circle.pixelInset = new Rect(0, 0, Screen.width, Screen.width); cTimer = 0.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; }