// Use this for initialization void Start() { direction = GetComponent <player_move>(); SE = GameObject.Find("soundContolloer").GetComponent <soundContolloer>(); time = 10.0f; st = GameObject.Find("statusContolloer").GetComponent <stautascontolloer>(); }
// Use this for initialization void Start() { MainspriteRender = GetComponent <SpriteRenderer>(); pos = transform.position; hougyo3 = (GameObject)Resources.Load("宝玉3"); hougyo2 = (GameObject)Resources.Load("2宝玉"); hougyo = (GameObject)Resources.Load("火竜"); yapre = (GameObject)Resources.Load("ya"); oill = (GameObject)Resources.Load("oil1"); trap_Im = (GameObject)Resources.Load("wana"); status = GameObject.Find("statusContolloer").GetComponent <stautascontolloer>(); }
// Use this for initialization void Awake() { stautas = GameObject.Find("statusContolloer").GetComponent <stautascontolloer>(); arrow_number = Random.Range(1, 4); }