void Awake() { PlayableDirector = GetComponent <PlayableDirector>(); #if UNITY_EDITOR ServiceLocator.CheckForUniqueness <UnloadTruck>(gameObject); #endif }
private void Awake() { RecomputeCoinTexts(0); #if UNITY_EDITOR ServiceLocator.CheckForUniqueness <TopUI>(gameObject); #endif }
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 }