void Start( ) { isClear = false; touchCro = GameObject.FindObjectOfType <touchControl>( ); mainGamePanel = GameObject.FindObjectOfType <MainGamePanel>( ); theEnemySpawner = GameObject.FindObjectOfType <EnemySpawner>( ); }
// Use this for initialization void Start() { touchCro = GameObject.Find("TouchController").GetComponent <touchControl>( ); mainGameCamera = GameObject.FindGameObjectWithTag("MainCamera"); rb = gameObject.GetComponent <Rigidbody>( ); targetMark.SetActive(false); isDead = false; if (this.gameObject.tag == "Boss") { transform.FindChild("face").GetComponent <Renderer>( ).material.SetTextureOffset("_MainTex", new Vector2(0f, -0.5f)); } }
// Use this for initialization void Start() { m_Slider = this.GetComponent <Slider>( ); m_TouchCtrl = GameObject.FindObjectOfType <touchControl>( ); }