// 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>(); }
void Start() { if (_L != null && !_L) { Destroy(gameObject); } _L = this; DontDestroyOnLoad(gameObject); keys = new int[5]; }
void Awake() { manager = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <level_manager>(); spawned = true; Planet = GameObject.FindGameObjectWithTag("Planet"); }
public void SetLevelManager(level_manager manager) { _level_manager = manager; }
void OnEnable() { PlayerSpawn = new Vector2(-23, -5.5f); INSTANCE = this; SetLevel(0, PlayerSpawn); }