private void Awake() { feedbackText = GetComponent <TextMeshPro>(); scaleTween = GetComponent <TweenAbstract>(); feedbackText.text = ""; feedbackText.color = Color.white; }
private void Awake() { tweenIn = GetComponentInChildren <TweenIn>(); tweenOut = GetComponentInChildren <TweenOut>(); gameObject.SetActive(false); }
private void Awake() { rb = GetComponent <Rigidbody2D>(); hitWiggle = GetComponent <TweenAbstract>(); ren = GetComponent <SpriteRenderer>(); rb.Sleep(); rb.isKinematic = true; }
public void SetInactive() { if (gameObject.activeSelf) { if (tweenOut == null) { tweenOut = GetComponentInChildren <TweenOut>(); } tweenOut.StartTween(0.5f); } }
private void Start() { //Create ball prefab hitWiggle = GetComponent <TweenAbstract>(); powerUpQueue = new Queue <PowerUpAbstract>(); }