Beispiel #1
0
        void Start()
        {
            movable       = GetComponentInParent <Movable>();
            level_builder = GameObject.Find("GameSystem").GetComponent <ProceduralLevelBuilder>();

            guns    = GetComponentsInChildren <Gun>(true);
            shields = GetComponentsInChildren <Shield>(true);

            trails = GetComponent <TrailRenderer>();

            if (level_builder == null)
            {
                Debug.LogError("No level builder found");
            }

            current = this;
        }
 // Use this for initialization
 void Start()
 {
     level_builder         = GetComponentInChildren <rlc.ProceduralLevelBuilder>();
     last_wave_change_time = Time.time;
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     level_builder = GetComponentInChildren <rlc.ProceduralLevelBuilder>();
 }