public int playerMarker;//副主角标记,标记是Q还是E,1为Q,2为E // Use this for initialization void Start() { record = GetComponent <retourer>(); manager = GameObject.Find("ManagerOBJ").GetComponent <unitManager>(); action = GetComponent <BaseAction_AI_player>(); unit = transform.Find("twoD").GetComponent <unit>(); }
// Use this for initialization void Start() { record = GetComponent <retourer>(); manager = GameObject.Find("ManagerOBJ").GetComponent <unitManager>(); action = GetComponent <BaseAction_AI_player>(); record.traget = traget; unit = transform.Find("twoD").GetComponent <unit>(); // Debug.DrawLine(transform.position, transform.position + (new Vector3(-0.5f,0,-0.9f)) * 100, Color.red, 20); }
public char Marker;//副主角标记,标记是Q还是E,1为Q,2为E // Use this for initialization void Start() { record = GetComponent <retourer>(); manager = GameObject.Find("ManagerOBJ").GetComponent <unitManager>(); action = GetComponent <BaseAction_AI_player>(); // Debug.Log("manager is" + GameObject.Find("ManagerOBJ")+"componment is" + GameObject.Find("ManagerOBJ").GetComponent<unitManager>()+"marker is"+Marker); /*if (Marker.Equals('Q')) * { * Debug.Log("enter 1"); * tragetposition = manager.tragetpointQ; * } * else if (Marker.Equals( 'E')) * { * Debug.Log("enter 2"); * tragetposition = manager.tragetpointE; * }*/ unit = transform.Find("twoD").GetComponent <unit>(); }