예제 #1
0
    // Use this for initialization
    void Start()
    {
        animator   = this.GetComponent <Animator>();
        location_x = (int)this.transform.position.x + 1;
        location_y = (int)(-this.transform.position.y + 4.5f);

        c_name = Network.player.ipAddress;

        if (isServer)
        {
            NetworkInfo.Login(this);
        }
        if (!isLocalPlayer)
        {
            return;
        }

        this.transform.position = new Vector3(location_x - 1, -location_y + 4.5f, 0);
    }