Beispiel #1
0
    public void CollectFreeze(GameObject col)
    {
        Create.GetComponent <FreezeBox>().BroadcastFreeze();

        col.transform.position += Vector3.forward * 10;

        PlaySound();
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     tiling1 = GameObject.Find("1_plan").GetComponent <Tiling>();
     tiling2 = GameObject.Find("2_plan").GetComponent <Tiling>();
     main    = GameObject.Find("Main Camera").GetComponent <LevelCreator>();
     up      = main.GetComponent <up_down>();
     end     = new Vector3(player.position.x + 10.7f, player.position.y + 2f, -1f);
     score   = GameObject.Find("ScoreC").GetComponent <Canvas>();
     menu    = GameObject.Find("Canvas").GetComponent <Canvas>();
     input   = GameObject.Find("Main Camera").GetComponent <inputController>();
     anim    = GameObject.Find("Player").GetComponent <playerHandler>();
 }