public void MoveLoungePlayer(int id, Vector3 targetPos)
    {
        //IL_0015: Unknown result type (might be due to invalid IL or missing references)
        //IL_0027: Unknown result type (might be due to invalid IL or missing references)
        LoungePlayer loungePlayer = GetLoungePlayer(id);

        if (!(loungePlayer == null) && !(loungePlayer.get_gameObject() == null))
        {
            loungePlayer.SetMoveTargetPosition(targetPos);
        }
    }
Esempio n. 2
0
    public LoungePlayer CreateLoungePlayer(HomePeople home_people, Transform parent, CharaInfo chara_info, bool useMovingEntry)
    {
        //IL_005b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0062: Unknown result type (might be due to invalid IL or missing references)
        //IL_007d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0089: Unknown result type (might be due to invalid IL or missing references)
        LoungePlayer loungePlayer = Utility.CreateGameObjectAndComponent("LoungePlayer", parent, -1) as LoungePlayer;

        loungePlayer.SetHomePeople(home_people);
        loungePlayer.StopDiscussion();
        loungePlayer.SetLoungeCharaInfo(chara_info);
        OutGameSettingsManager.LoungeScene loungeScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.loungeScene;
        Vector3 val = default(Vector3);

        val._002Ector(0f, 0f, -1f);
        float selfInitRot = loungeScene.selfInitRot;

        loungePlayer._transform.set_position((!useMovingEntry) ? loungeScene.selfInitPos : val);
        loungePlayer._transform.set_eulerAngles(new Vector3(0f, selfInitRot, 0f));
        loungePlayer.SetMoveTargetPosition(loungeScene.selfInitPos);
        loungePlayer.SetChatEvent();
        return(loungePlayer);
    }