コード例 #1
0
ファイル: Pinkly.cs プロジェクト: miskara/Projects
	void Start () {
		pot = 30;
		dragged = false;
		spawns = GameObject.Find ("Fruitspawns").GetComponent<FruitSpawns> ();
		burpy = GameObject.FindGameObjectWithTag ("Burpy").GetComponent<Burpy> ();
		controller = GameObject.FindGameObjectWithTag ("GameController").GetComponent<ScoreController>();
	}
コード例 #2
0
 void Start()
 {
     winRain.Stop();
     winRain.Clear();
     winRain.renderer.sortingLayerName = "UI";
     //winPos.SetActive (false);
     //timepos = time.transform.position;
     controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController> ();
     //spawner = GameObject.FindGameObjectWithTag ("Spawner").GetComponent<FruitSpawns>();
     if (Application.loadedLevelName.Contains("7"))
     {
         spawner = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
     }
     else
     {
         spawner = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
     }
     //time.transform.position = winnerpos;
     //time.color = Color.cyan;
     //time.fontSize=50;
     //time.text = "Select players by touching their launchpads! \n Touch Burpy to start the game";
     startPos = fader.transform.position;
     endPos   = new Vector3(0f, 50f, 0f);
     camPos   = GameObject.Find("Main Camera").transform.position;
 }
コード例 #3
0
 void Awake()
 {
     timer     = GameObject.FindGameObjectWithTag("Timer").GetComponent <Timer> ();
     gameStart = false;
     if (Application.loadedLevelName.Contains("7"))
     {
         spawns = GameObject.Find("Fruitspawns").GetComponent <GiantbugFrtSpawns>();
     }
     else
     {
         spawns = GameObject.Find("Fruitspawns").GetComponent <FruitSpawns> ();
     }
 }
コード例 #4
0
ファイル: Fruit.cs プロジェクト: miskara/Projects
 void Awake()
 {
     dragged = false;
     if (Application.loadedLevelName.Contains("7"))
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
     }
     else
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
     }
     burpy      = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
     controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
 }
コード例 #5
0
ファイル: Fruit.cs プロジェクト: miskara/Projects
 void Start()
 {
     dragged = false;
     if (Application.loadedLevelName.Contains("7"))
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
     }
     else
     {
         spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
     }
     //while (burpy=null) {
     burpy = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
     //}
     controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
     camPos     = GameObject.Find("Main Camera").transform.position;
 }
コード例 #6
0
ファイル: Coconut.cs プロジェクト: miskara/Projects
    void Start()
    {
        if (Application.loadedLevelName.Contains("7"))
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
        }
        else
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
        }
        poolingSystem = PoolingSystem.Instance;

        dragged    = false;
        burpy      = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> ();
        controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>();
        prtclpos   = new Vector3(0.0f, 4.0f, 0.0f);
        camPos     = GameObject.Find("Main Camera").transform.position;
    }
コード例 #7
0
    //Vector3 rdypos = new Vector3 (1.43f, 22f, 1.98f);
    //Vector3 hiddenpos = new Vector3 (1.43f,-55.0f,1.98f);


    void Start()
    {
        wobl       = playWatch.GetComponent <Wobbler> ();
        playhidden = true;
        playWatch.transform.localScale = hide;
        for (int i = 1; i < 5; i++)
        {
            inactive.Add(GameObject.Find("Player" + i));
        }
        timer     = GameObject.FindGameObjectWithTag("Timer").GetComponent <Timer> ();
        gameStart = false;
        if (Application.loadedLevelName.Contains("7"))
        {
            spawns = GameObject.Find("Fruitspawns").GetComponent <GiantbugFrtSpawns>();
        }
        else
        {
            spawns = GameObject.Find("Fruitspawns").GetComponent <FruitSpawns> ();
        }
        //spawns = GameObject.Find ("Fruitspawns").GetComponent<FruitSpawns> ();
        //controller = GameObject.FindGameObjectWithTag ("GameController").GetComponent<ScoreController> ();
    }
コード例 #8
0
ファイル: Burpy.cs プロジェクト: miskara/Projects
    void Start()
    {
        hits  = 0;
        ended = false;
        scale = new Vector3(0f, 0f, 0f);
        transform.localScale = minScale;
        for (int i = 0; i < 4; i++)
        {
            lpadParticles[i].Stop();
            lpadParticles[i].Clear();
            lpadParticles[i].particleSystem.renderer.sortingLayerName = "UI";
        }
        frtRain.Stop();
        frtRain.Clear();
        inhale.Stop();
        inhale.Clear();
        sweat.Stop();
        sweat.Clear();
        sweat.renderer.sortingLayerName   = "UI";
        frtRain.renderer.sortingLayerName = "UI";
        inhale.renderer.sortingLayerName  = "UI";
        rndr   = GameObject.FindGameObjectWithTag("Burpym").GetComponent <Renderer>();
        anim   = GetComponent <Animator> ();
        bounce = 3000;
        mouth  = GameObject.Find("Mouth").transform;
        if (Application.loadedLevelName.Contains("7"))
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> ();
        }
        else
        {
            spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> ();
        }
        controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController> ();
        burpyFull  = FMOD_StudioSystem.instance.GetEvent("event:/01_sfx/burpy_full");

        camPos = GameObject.Find("Main Camera").transform.position;
    }