Exemplo n.º 1
0
    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>();
    }
Exemplo n.º 2
0
 // 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);
 }
Exemplo n.º 3
0
    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>();
    }