示例#1
0
        void Awake()
        {
            PlayableDirector = GetComponent <PlayableDirector>();

#if UNITY_EDITOR
            ServiceLocator.CheckForUniqueness <UnloadTruck>(gameObject);
#endif
        }
示例#2
0
        private void Awake()
        {
            RecomputeCoinTexts(0);

#if UNITY_EDITOR
            ServiceLocator.CheckForUniqueness <TopUI>(gameObject);
#endif
        }
示例#3
0
        void Awake()
        {
            Animator = GetComponent <Animator>();
            Animator.SetLayerWeight(RockLayer, .07f + .1f);             // The larger the rock - the more the layer weight.
            ServiceLocator.SubscribeToTruckLoadedEvent(WasLoaded);
            ServiceLocator.SubscribeToRockEnlargedEvent(RockEnlarged);
            ServiceLocator.SubscribeToQuaryUpgradedEvent(QuaryUpgraded);

#if UNITY_EDITOR
            ServiceLocator.CheckForUniqueness <ReceiveRockAnim>(gameObject);
#endif
        }