void Start () { _text = GetComponent<Text>(); _textColour = _text.color; _shadow = GetComponent<Shadow>(); _shadColour = _shadow.effectColor; }
public override void OnEnter () { component = gameObject.Value.GetComponent<Shadow>(); if (component == null) { component = gameObject.Value.AddComponent<Shadow>(); } DoSetShadow (); if (!everyFrame) { Finish (); } }
// Use this for initialization void Start () { if (shadow == null) shadow = GetComponent<Shadow> (); }