Esempio n. 1
0
    public void InitObject()
    {
        //초기화 Appmanager 에서 모두 각각의 오브젝트를 초기화시킨다.
        appManager = AppManager.GetInstance();

        mainCamera = appManager.mainCamera;

        loginCanvas = appManager.loginCanvas;

        deployShipCanvas = appManager.deployShipCanvas;

        findingGameCanvas = appManager.findingGameCanvas;

        playCanvas = appManager.playCanvas;

        playEndCanvas = appManager.playEndCanvas;

        myTiles = appManager.tileManager.GetComponent <DeployTile>().tiles;

        bombStorage = appManager.deployer.GetComponent <DeployBomb>().Armory.GetComponent <MakeBomb>().bombStorage;

        shipDock = appManager.deployer.transform.Find("Harbor").gameObject.GetComponent <MakeShip>().ShipDock;;

        hitTile = appManager.deployer.GetComponent <MakeTile>().tileStorage;

        normalTile = appManager.deployer.GetComponent <MakeTile>().tileStorageNormal;

        networkManager = NetworkManager.GetInstance();
        httpNet        = networkManager.httpNetwork;
        tcpNet         = networkManager.tcpipNetwork;

        AddNetworkEvent();
    }
Esempio n. 2
0
    public void InitObject()
    {
        //초기화 Appmanager 에서 모두 각각의 오브젝트를 초기화시킨다.
        appManager = AppManager.GetInstance();

        mainCamera = appManager.mainCamera;

        loginCanvas = appManager.loginCanvas;

        deployShipCanvas = appManager.deployShipCanvas;

        gameStartButtonText = appManager.gameStartButtontext;

        findingGameCanvas = appManager.findingGameCanvas;

        cancleButtontext = appManager.cancleButtontext;

        playCanvas = appManager.playCanvas;

        playEndCanvas = appManager.playEndCanvas;

        myTiles = appManager.tileManager.GetComponent <DeployTile>().tiles;
        //Debug.Log("tilenum" + appManager.tileManager.GetComponent<DeployTile>().tiles.Length);
        shipDock = appManager.deployer.transform.Find("Harbor").gameObject.GetComponent <MakeShip>().ShipDock;;

        networkManager = NetworkManager.GetInstance();
        httpNet        = networkManager.httpNetwork;
        tcpNet         = networkManager.tcpipNetwork;
        shipDeplyInfo  = "";

        AddNetworkEvent();
    }
Esempio n. 3
0
    public void InitObject()
    {
        //초기화 Appmanager 에서 모두 각각의 오브젝트를 초기화시킨다.
        appManager = AppManager.GetInstance();

        mainCamera = appManager.mainCamera;

        loginCanvas = appManager.loginCanvas;

        deployShipCanvas = appManager.deployShipCanvas;

        findingGameCanvas = appManager.findingGameCanvas;

        playCanvas = appManager.playCanvas;

        playEndCanvas = appManager.playEndCanvas;

        deployer       = appManager.deployer;;
        harbor         = appManager.deployer.transform.Find("Harbor").gameObject;
        armory         = appManager.deployer.transform.Find("Armory").gameObject;
        tileManager    = appManager.tileManager;
        networkManager = NetworkManager.GetInstance();
        httpNet        = networkManager.httpNetwork;
        tcpNet         = networkManager.tcpipNetwork;
    }
Esempio n. 4
0
    private void Awake()
    {
        if (instance == null)
        {
            tcpipNetwork = new TcpIpLib();
            //TODO:커넥트는 나중에 다른곳에서.
            tcpipNetwork.Connect(ipAddress, portNum);
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(this.gameObject);
    }
Esempio n. 5
0
    public void InitObject()
    {
        //초기화 Appmanager 에서 모두 각각의 오브젝트를 초기화시킨다.
        appManager = AppManager.GetInstance();

        mainCamera = appManager.mainCamera;

        loginCanvas = appManager.loginCanvas;

        deployShipCanvas = appManager.deployShipCanvas;

        findingGameCanvas = appManager.findingGameCanvas;

        playCanvas = appManager.playCanvas;

        playEndCanvas = appManager.playEndCanvas;

        networkManager = NetworkManager.GetInstance();
        httpNet        = networkManager.httpNetwork;
        tcpNet         = networkManager.tcpipNetwork;

        AddNetworkEvent();
    }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     httpNet        = NetworkManager.GetInstance().httpNetwork;
     tcpNet         = NetworkManager.GetInstance().tcpipNetwork;
     NetworkManager = NetworkManager.GetInstance();
 }