private void Awake() { // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); animator = GetComponentInParent <Animator>(); }
private void Awake() { tmpPro = GetComponentInParent <TMP_Text>(); // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); }
// Use this for initialization void Awake() { particles = GetComponentInParent <ParticleSystem>(); image = GetComponentInParent <Image>(); pigGrunting = GetComponentInParent <AudioSource>(); // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); }
private void Start() { Random.InitState(System.Environment.TickCount); BorgPlayer.spinner = this; // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); spinButton = FindObjectOfType <Button>(); }
virtual protected void Awake() { // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); }
private void Start() { // register with the theme controller themeController = ThemeController.Instance; themeController.RegisterThemedObjectHandler(this); }