コード例 #1
0
        public void SetFirstPersonCharacter(GameObject obj)
        {
            _characterP1 = obj;
            _p1Index     = ValidP1Index;

            _p1Avatar = new CharacterAvatar(_characterP1);
            _p1Avatar.Hide();
        }
コード例 #2
0
        public void SetThirdPersonCharacter(GameObject obj)
        {
            _characterP3 = obj;
            _p3Index     = ValidP3Index;
            P3HaveInit   = true;

            _p3Avatar = new CharacterAvatar(_characterP3);
            _p3Avatar.SetBagChangedDelegate(_bagChanged);
            _p3Avatar.Show();

            InitWardrobe(DefaultModelParts);
        }
コード例 #3
0
        public void ClearThirdPersonCharacter()
        {
            for (var i = 0; i < (int)Wardrobe.EndOfTheWorld; ++i)
            {
                _defaultAvatars[i] = UniversalConsts.InvalidIntId;
            }
            CommonReset();
            GetRecycleRequests();

            _p3Avatar    = null;
            _p3Index     = -1;
            _characterP3 = null;
        }
コード例 #4
0
        public void SetThirdPersonCharacter(GameObject obj)
        {
            _characterP3 = obj;
            _p3Index     = ValidP3Index;
            P3HaveInit   = true;

            _p3Avatar = new CharacterAvatar(_characterP3);
            _p3Avatar.SetBagChangedDelegate(_bagChanged);
            if (IsFirstPerson)
            {
                _p3Avatar.Hide();
            }
            else
            {
                _p3Avatar.Show();
            }

            InitWardrobe(DefaultModelParts);

            Logger.InfoFormat("CharacterLog-- Wardrobe GameObject:  {0}", obj.name);
        }