// Use this for initialization
 void Start()
 {
     director         = director_container.GetComponent <GenerateSpheres>();
     game_manager     = gm_object.GetComponent <PhaserGame>();
     delay_time_local = delay_time;
     button_audio     = GetComponents <AudioSource>();
     lcars_screen.GetComponent <Renderer>().material = lcars1;
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        initiate_button  = button.GetComponent <InitiatePhaserGame>();
        game_manager     = manager.GetComponent <PhaserGame>();
        end_transport    = GetComponents <AudioSource>()[0];
        end_button       = GetComponents <AudioSource>()[1];
        transport_effect = transport_cube.GetComponent <TransporterFade>();
        StartCoroutine(LoadLevel());

        tracker = new TrackAchievements();
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        if (name.Contains("Right"))
        {
            current_controller = OVRInput.Controller.RTouch;
        }
        else
        {
            current_controller = OVRInput.Controller.LTouch;
        }

        phaser_start = GetComponents <AudioSource>()[0];
        phaser_loop  = GetComponents <AudioSource>()[1];

        phaser_glow = transform.Find("PhaserProjector/LightFlare").gameObject;
        phaser_glow.SetActive(false);

        game_manager = gm_object.GetComponent <PhaserGame>();
    }
 // Use this for initialization
 void Start()
 {
     game_manager = gm_object.GetComponent <PhaserGame>();
 }