public HintBubbleManager GetHintBubbleManager() { if (this.hintBubble == null) { this.hintBubble = GetComponentInChildren <HintBubbleManager> (); } return(this.hintBubble); }
public HintBubbleManager GetBubbleManager() { if (this.bubbleManager == null) { this.bubbleManager = GetComponent <HintBubbleManager> (); } return(this.bubbleManager); }
void Awake() { this.bubbleManager = GetComponent <HintBubbleManager> (); EventBroadcaster.Instance.AddObserver(EventNames.SHOW_PLAYER_CARRY, ShowHint); EventBroadcaster.Instance.AddObserver(EventNames.HIDE_PLAYER_CARRY, HideHint); EventBroadcaster.Instance.AddObserver(EventNames.HIDE_SIMPLE_PLAYER_CARRY, HideHintSimple); EventBroadcaster.Instance.AddObserver(EventNames.ON_PLAYER_GEM_ENTER, SkyOverlapUpdate); EventBroadcaster.Instance.AddObserver(EventNames.ON_PLAYER_LIFT_ENTER, LiftOverlapUpdate); this.isOpen = false; }
void Awake() { UnityEngine.Random.InitState(3216); validDenominators = new List <int> (); fractionReference = FractionsReference.Instance(); fractionReference.AddObserver(this.RequestValidDenominators); // fractionReference.UpdateFractionRange (this.RequestValidDenominators); // animator = gameObject.GetComponent<Animator> (); spriteRenderers = gameObject.GetComponentsInChildren <PartitionableSprite>(); this.hintBubble = GetComponentInChildren <HintBubbleManager> (); // spriteRenderer.color = new Color (spriteRenderer.color.r, spriteRenderer.color.g, spriteRenderer.color.b, INTANGIBLE_OPACITY); // childrenSpriteRenderers = gameObject.GetComponentsInChildren<SpriteRenderer> (); this.objectCollider = gameObject.GetComponent <Collider2D> (); rigidBody2d = gameObject.GetComponent <Rigidbody2D> (); fractionLabel = gameObject.GetComponent <PartitionableObjectMarker> (); this.disabledTransparency(); // ChangeSpriteOpacity (INTANGIBLE_OPACITY); }
void Awake() { this.bubbleManager = GetComponent <HintBubbleManager> (); // EventBroadcaster.Instance.AddObserver (EventNames.ON_HOLLOW_STABILITY_UPDATE, UpdateHint); this.isOpen = false; }