Ejemplo n.º 1
0
    void Start()
    {
        _dressRoom = GameObject.Find("_DressRoom").GetComponent<DressRoom>();// transform.root.gameObject.GetComponent<DressRoom>();

        if (_dressRoom == null)
        {
            Debug.LogError("No DressRoom script is found, please check the scene");
        }
    }
Ejemplo n.º 2
0
    private void Awake()
	{
        dressRoom = this;

        SetupServers();

        Application.runInBackground = true;

        if (Application.platform == RuntimePlatform.WindowsWebPlayer || Application.platform == RuntimePlatform.OSXWebPlayer)
        {
            Application.ExternalCall("OnLiloLoaded");
            Application.ExternalCall("get_session_id");
        }
        
        CharacterGenerator.OnBodyPartChanging += new Action<CharacterGenerator.BodyPartChangeType>(CharacterGenerator_OnBodyPartChanging);
	}