// Use this for initialization
 void Start()
 {
     unit     = (unit)transform.Find("twoD").GetComponent("unit");
     animator = transform.Find("twoD").GetComponent <Animator>();
     master   = unit.master;
     AIAction = GetComponent("BaseAction_AI_player") as BaseAction_AI_player;
     manager  = GameObject.Find("ManagerOBJ").GetComponent <unitManager>();
 }
Beispiel #2
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>();
    }
Beispiel #3
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);
 }
Beispiel #4
0
    // Use this for initialization
    void Start()
    {
        TcpClient client = new TcpClient();

        client.Connect(SERVER_IP, 4747);
        stream     = client.GetStream();
        unitAction = GetComponent <BaseAction_AI_player>();

        receive = new ReceiveClient(client);
        Thread thread = new Thread(receive.receiveThread);

        thread.Start();
    }
    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>();
    }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     transf = this.transform;
     action = GetComponent <BaseAction_AI_player>();
 }
 // Use this for initialization
 void Start()
 {
     action = GetComponent <BaseAction_AI_player>();
 }
Beispiel #8
0
 // Use this for initialization
 void Start()
 {
     action  = GetComponent <BaseAction_AI_player>();
     mytrans = transform;
 }