Esempio n. 1
0
        private static void InstantiateFromPrefab(Prefab prefab)
        {
            _instance = ObjectInstantiation.InstantiateObjectPlacementGuide(prefab, prefab.Name + "(" + _nameSuffix + ")");
            _instance._sourcePrefab      = prefab;
            _instance.transform.rotation = prefab.ActivationSettings.WorldRotation;
            _instance.gameObject.SetWorldScale(prefab.ActivationSettings.WorldScale);

            ObjectPlacementGuideWasInstantiatedMessage.SendToInterestedListeners();
        }
Esempio n. 2
0
        public static void SendToInterestedListeners()
        {
            var message = new ObjectPlacementGuideWasInstantiatedMessage();

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }