コード例 #1
0
ファイル: Rotator.cs プロジェクト: azanium/PopBloop-Unity
    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");
        }
    }
コード例 #2
0
ファイル: DressRoom.cs プロジェクト: azanium/Klumbi-Unity
    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);
	}