예제 #1
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> ();
	}
 void Awake()
 {
     minigameManager = GameObject.Find("Minigame").GetComponent <BlockPartyMinigameManager>();
     blockManager    = GameObject.Find("Minigame").GetComponent <BlockManager>();
     particleManager = GameObject.Find("Minigame").GetComponent <ParticleManager>();
     boardRaiser     = GameObject.Find("Minigame").GetComponent <BoardRaiser>();
     hoppingSprites  = new List <List <Sprite> >();
     hoppingSprites.Add(HoppingSprites0);
     hoppingSprites.Add(HoppingSprites1);
     hoppingSprites.Add(HoppingSprites2);
     hoppingSprites.Add(HoppingSprites3);
     hoppingSprites.Add(HoppingSprites4);
 }
    void Awake()
    {
        GameObject board = GameObject.Find("Board");

        if (board != null)
        {
            blockManager = board.GetComponent <BlockManager>();
            boardRaiser  = board.GetComponent <BoardRaiser>();
        }

        GameObject particles = GameObject.Find("Particles");

        if (particles != null)
        {
            particleManager = particles.GetComponent <ParticleManager>();
        }

        hoppingSprites = new List <List <Sprite> >();
        hoppingSprites.Add(HoppingSprites0);
        hoppingSprites.Add(HoppingSprites1);
        hoppingSprites.Add(HoppingSprites2);
        hoppingSprites.Add(HoppingSprites3);
        hoppingSprites.Add(HoppingSprites4);
    }
예제 #4
0
	void Awake()
	{
		sign = GetComponent<Sign> ();
		raiser = GameObject.Find ("Board").GetComponent<BoardRaiser> ();
		text = GetComponent<Text> ();
	}
예제 #5
0
 // Use this for initialization
 void Start()
 {
     raiser = GetComponent<BoardRaiser>();
 }