// Start is called before the first frame update private void Awake() { UIAPI = GetComponent <UI_API>(); changeColor = GetComponent <ChangeColor>(); golemScript = GetComponent <GollemScript>(); PowerUpCount = 0; PlayerScore = 0; }
public override void OnInspectorGUI() { DrawDefaultInspector(); GollemScript myScript = (GollemScript)target; if (GUILayout.Button("Create Player")) { myScript.GenerateMesh(); } if (GUILayout.Button("Update Scale")) { myScript.UpdateScaleOfObjects(); } }
// Start is called before the first frame update void Start() { GScript = this.GetComponent <GollemScript>(); }