120708 object selecting in unity3d skyseer

  • Published on
    25-May-2015

  • View
    583

  • Download
    0

Embed Size (px)

Transcript

  • 1. Object Selecting in Unity3dskyseer00@hotmail.com

2. Object Selecting? & NPC UI 3. How List Sort (ex, Tab) Ray ! 4. Selecting StartCoRoutine() StartCoroutine("FSM"); IEnumerator()Tag GameObject yield return()GameObject[] go = GameObject.FindGameObjectsWithTag("Enemies"); GameObject selectedTarget.renderer.material.color = Color.red;PlayerAttack pa = (PlayerAttack)GetComponent("PlayerAttack"); 5. Selecting StartCoRoutine() StartCoroutine("FSM"); IEnumerator() yield return() Raypublic Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);Ray Physics.Raycast(ray, out hit, _CameraRange) object taghit.collider.gameObject.tag == "Enemies 6.