public void Clicked() { Debug.Log(string.Format("Surface is clicked.")); isClick = true; Debug.Log(string.Format("Debug: Clicked.")); Destroy(GameObject.FindGameObjectWithTag("Mol")); Destroy(GameObject.FindGameObjectWithTag("HETATM")); MainMol.SpawnMolecule("surface"); }
private void Awake() { MainMol.SpawnMolecule("surface"); }