Exemple #1
0
        private void onTemporaryHeadStatusUpdated(PresenceData presenceData)
        {
            HeadStatusView component = base.gameObject.GetComponent <HeadStatusView>();

            if (component != null)
            {
                component.LoadParticlePrefab(presenceData.TemporaryHeadStatusType);
            }
        }
        public static void TestParticlesTrophyD()
        {
            GameObject gameObject = GameObject.Find("Penguin");

            if (gameObject != null)
            {
                HeadStatusView component = gameObject.GetComponent <HeadStatusView>();
                component.LoadParticlePrefab(TemporaryHeadStatusType.TrophyD);
                Service.Get <INetworkServicesManager>().PlayerStateService.SetTemporaryHeadStatus(4);
            }
        }