private void btn_solidcolor_Click(object sender, EventArgs e)
 {
     if (!clr.IsEmpty)
     {
         ChangeBackground.SetColor(clr);
     }
 }
Пример #2
0
 //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>();
 }
Пример #3
0
 internal void ChangeDesktopBackground()
 {
     lock (this)
     {
         ChangeBackground.ChangingBackground = true;
         using (ChangeBackground = new ChangeBackground(fileList.GetFiles()))
         {
             ChangeBackground.ChangeDesktopBackground();
         }
         ChangeBackground.ChangingBackground = false;
     }
     this.OnRedraw();
 }
Пример #4
0
    void Start()
    {
        _ChangeBackground = FindObjectOfType <ChangeBackground>();

        agent = GetComponent <NavMeshAgent>();
    }
Пример #5
0
 void Start()
 {
     instance = this;
     GenerateBackground();
 }