private void btn_solidcolor_Click(object sender, EventArgs e) { if (!clr.IsEmpty) { ChangeBackground.SetColor(clr); } }
//instantiations for script references void Start() { changeBG = GameObject.FindGameObjectWithTag("Background").GetComponent <ChangeBackground> (); player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControl>(); playerHealth = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerHealth>(); camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraControl>(); platforms = GameObject.FindGameObjectWithTag("Ground").GetComponent <SpawnPlatforms>(); birds = GameObject.FindGameObjectWithTag("Bird").GetComponent <BirdAI>(); enemy1 = GameObject.FindGameObjectWithTag("Enemy1").GetComponent <Enemy1AI>(); }
internal void ChangeDesktopBackground() { lock (this) { ChangeBackground.ChangingBackground = true; using (ChangeBackground = new ChangeBackground(fileList.GetFiles())) { ChangeBackground.ChangeDesktopBackground(); } ChangeBackground.ChangingBackground = false; } this.OnRedraw(); }
void Start() { _ChangeBackground = FindObjectOfType <ChangeBackground>(); agent = GetComponent <NavMeshAgent>(); }
void Start() { instance = this; GenerateBackground(); }