// Use this for initialization void Awake() { block = GetComponent <Block>(); slider = GetComponent <BlockSlider>(); clearer = GetComponent <BlockClearer>(); faller = GetComponent <BlockFaller>(); spriteRenderer = transform.Find("Sprite").GetComponent <SpriteRenderer>(); }
void Awake() { block = GetComponent <Block>(); slider = GetComponent <BlockSlider>(); clearer = GetComponent <BlockClearer>(); faller = GetComponent <BlockFaller>(); matcher = GetComponent <BlockMatcher>(); spriteRenderer = GetComponent <SpriteRenderer>(); block.OnBlockChanged += HandleBlockChanged; }
// Use this for initialization void Awake () { block = GetComponent<Block> (); slider = GetComponent<BlockSlider> (); faller = GetComponent<BlockFaller> (); clearer = GetComponent<BlockClearer> (); raiser = GameObject.Find ("Board").GetComponent<BoardRaiser> (); spriteRenderer = transform.Find ("Sprite").GetComponent<SpriteRenderer> (); matchGradientRenderer = transform.Find ("Match Gradient").GetComponent<SpriteRenderer> (); particles = transform.Find ("Match Particles").GetComponent<ParticleSystem> (); additiveLayer = transform.Find ("Additive Layer").GetComponent<SpriteRenderer> (); }
// Use this for initialization void Awake() { block = GetComponent <Block>(); clearer = GetComponent <BlockClearer>(); emptier = GetComponent <BlockEmptier>(); }
// Use this for initialization void Awake() { block = GetComponent<Block>(); clearer = GetComponent<BlockClearer>(); emptier = GetComponent<BlockEmptier>(); }