void SpawnMode3()
 {
     if (UnityEngine.Random.Range(0, 100) < 60)
     {
         EditorModeController.Element element =
             this.GetComponent <EditorModeController>().GoldenElementList[UnityEngine.Random.Range(0, this.GetComponent <EditorModeController>().GoldenElementList.Count)];
         element.elementObject.GetComponent <ElementController>().BeaconPulse(true);
     }
     else
     {
         EditorModeController.Element element =
             this.GetComponent <EditorModeController>().NormalElementList[UnityEngine.Random.Range(0, this.GetComponent <EditorModeController>().NormalElementList.Count)];
         element.elementObject.GetComponent <ElementController>().BeaconPulse(false);
     }
 }
 void SpawnElementalEvent()
 {
     // 10% of times, every 5 to 15 seconds, a pulse will happen on a normal object (NOT golden)
     //On Mode=3 messages from gold and normal objects are considered
     if (UnityEngine.Random.Range(0, 100) < 40 && this.GetComponent <MySQLManager>().playerMode == "3")
     {
         EditorModeController.Element element =
             this.GetComponent <EditorModeController>().NormalElementList[UnityEngine.Random.Range(0, this.GetComponent <EditorModeController>().NormalElementList.Count)];
         element.elementObject.GetComponent <ElementController>().BeaconPulse(false);
     }
     //Messages on Mode=2 are always gold messages
     else
     {
         EditorModeController.Element element =
             this.GetComponent <EditorModeController>().GoldenElementList[UnityEngine.Random.Range(0, this.GetComponent <EditorModeController>().GoldenElementList.Count)];
         element.elementObject.GetComponent <ElementController>().BeaconPulse(true);
     }
 }