Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        GameObject comment_obj = GameObject.Find("comment_1");

        comment_1 = comment_obj.GetComponent <Text> ();

        GameObject comment_obj2 = GameObject.Find("comment_2");

        comment_2 = comment_obj2.GetComponent <Text> ();

        manager = Explosion.GetComponent <level_manager>();
    }
Beispiel #2
0
    void Start()
    {
        if (_L != null && !_L)
        {
            Destroy(gameObject);
        }

        _L = this;

        DontDestroyOnLoad(gameObject);

        keys = new int[5];
    }
Beispiel #3
0
 void Awake()
 {
     manager = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <level_manager>();
     spawned = true;
     Planet  = GameObject.FindGameObjectWithTag("Planet");
 }
 public void SetLevelManager(level_manager manager)
 {
     _level_manager = manager;
 }
Beispiel #5
0
 void OnEnable()
 {
     PlayerSpawn = new Vector2(-23, -5.5f);
     INSTANCE    = this;
     SetLevel(0, PlayerSpawn);
 }