Exemple #1
0
 // Use this for initialization
 void Start()
 {
     controlla  = GameObject.FindGameObjectWithTag("Controlla");
     control    = LevelControlla.control;
     text       = GetComponent <Text> ();
     text.color = new Color(0, 0, 0, 0);
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     cam        = GameObject.FindGameObjectWithTag("MainCamera");
     control    = LevelControlla.control;
     text       = GetComponent <Text> ();
     happenOnce = true;
 }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        controlla = GameObject.FindGameObjectWithTag("Controlla");
        control   = LevelControlla.control;
//		transform.position = new Vector3 (player.transform.position.x, player.transform.position.y, -10);
        GetComponent <ScreenOverlay> ().intensity = -1;
        player = ManageSaveData.control.player;
        if (ManageSaveData.control.player == null)
        {
            player = Resources.Load("SquarePlayer") as GameObject;
        }
    }
Exemple #4
0
 // Use this for initialization
 void Awake()
 {
     control = this;
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     text    = GetComponent <Text> ();
     cam     = GameObject.FindGameObjectWithTag("MainCamera");
     control = LevelControlla.control;
 }
Exemple #6
0
 // Use this for initialization
 void Start()
 {
     control   = LevelControlla.control;
     controlla = GameObject.FindGameObjectWithTag("Controlla");
     image     = GetComponent <Image> ();
 }
Exemple #7
0
 // Use this for initialization
 void Start()
 {
     cam     = GameObject.FindGameObjectWithTag("MainCamera");
     img     = GetComponent <Image> ();
     control = LevelControlla.control;
 }
Exemple #8
0
 // Use this for initialization
 void Start()
 {
     controlla = GameObject.FindGameObjectWithTag("Controlla");
     rb2d      = GetComponent <Rigidbody2D> ();
     control   = LevelControlla.control;
 }