// Use this for initialization void Start() { input = this.GetComponentInChildren <InputField>(); input.text = "Enter an image URL here..."; input.gameObject.SetActive(false); colors = new Color[1]; averageColors = new ColorAverages(); creatureSpawn = this.GetComponentInChildren <SpawnCreature>(); input.onEndEdit.AddListener(SubmitURL); }
private void Start() { spawnCreature = GameManager.Instance.gameObject.GetComponent <SpawnCreature>(); }
private static void Sample1() { SpawnCreature.Spawn("Orc"); SpawnCreature.Spawn("Troll"); }
// Use this for initialization void Start() { gameManager = GameObject.Find("Game Manager"); spawnCreature = gameManager.GetComponent <SpawnCreature>(); creatureRigidBody = GetComponent <Rigidbody2D>(); }