Exemplo n.º 1
0
 // Use this for initialization
 void Awake()
 {
     block          = GetComponent <Block>();
     slider         = GetComponent <BlockSlider>();
     clearer        = GetComponent <BlockClearer>();
     faller         = GetComponent <BlockFaller>();
     spriteRenderer = transform.Find("Sprite").GetComponent <SpriteRenderer>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     block                 = GetComponent <Block>();
     slider                = GetComponent <BlockSlider>();
     clearer               = GetComponent <BlockClearer>();
     faller                = GetComponent <BlockFaller>();
     matcher               = GetComponent <BlockMatcher>();
     spriteRenderer        = GetComponent <SpriteRenderer>();
     block.OnBlockChanged += HandleBlockChanged;
 }
Exemplo n.º 3
0
	// 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> ();
	}
Exemplo n.º 4
0
 // Use this for initialization
 void Awake()
 {
     block   = GetComponent <Block>();
     clearer = GetComponent <BlockClearer>();
     emptier = GetComponent <BlockEmptier>();
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Awake()
 {
     block = GetComponent<Block>();
     clearer = GetComponent<BlockClearer>();
     emptier = GetComponent<BlockEmptier>();
 }