Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (GameObject.FindGameObjectsWithTag("WORLD").Length > 0)
     {
         WorldScript world = GameObject.FindGameObjectsWithTag("WORLD")[0].GetComponent <WorldScript>();
         world.AddBlockButt(this);
     }
     SetToDeactivated();
     orange      = new Color(1, 0.8666f, 0.4f, 1);
     lightOrange = new Color(1, 0.8666f, 0.4f, 0.5f);
     lightWhite  = new Color(1f, 1f, 1f, 0.6f);
     pickUp      = false;
 }