コード例 #1
0
        public static void SetInteractInWorldIconType(InteractInWorldIconType type)
        {
            tweakableType = type;
            InteractInWorldIconController interactInWorldIconController = Object.FindObjectOfType <InteractInWorldIconController>();

            if (interactInWorldIconController != null)
            {
                interactInWorldIconController.setState(type);
            }
        }
コード例 #2
0
        private void Start()
        {
            CPDataEntityCollection cPDataEntityCollection = Service.Get <CPDataEntityCollection>();

            participationData       = cPDataEntityCollection.GetComponent <ParticipationData>(cPDataEntityCollection.LocalPlayerHandle);
            membershipData          = cPDataEntityCollection.GetComponent <MembershipData>(cPDataEntityCollection.LocalPlayerHandle);
            gameObjectReferenceData = cPDataEntityCollection.GetComponent <GameObjectReferenceData>(cPDataEntityCollection.LocalPlayerHandle);
            type = InteractInWorldIconType.UICanvas;
            type = ((tweakableType != 0) ? tweakableType : type);
            setState(type);
            propService      = Service.Get <PropService>();
            indicatorRequest = Content.LoadAsync(onInteractIndicatorLoaded, InteractIndicatorContentKey);
        }
コード例 #3
0
        private void setState(InteractInWorldIconType type)
        {
            switch (type)
            {
            case InteractInWorldIconType.None:
                base.gameObject.SetActive(value: false);
                break;

            case InteractInWorldIconType.UICanvas:
                base.gameObject.SetActive(value: true);
                IsFollowingPenguin = false;
                break;

            case InteractInWorldIconType.UICanvasPenguin:
                base.gameObject.SetActive(value: true);
                IsFollowingPenguin = true;
                break;
            }
        }