Exemple #1
0
    // 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);
    }
Exemple #2
0
 private void Start()
 {
     spawnCreature = GameManager.Instance.gameObject.GetComponent <SpawnCreature>();
 }
 private static void Sample1()
 {
     SpawnCreature.Spawn("Orc");
     SpawnCreature.Spawn("Troll");
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     gameManager       = GameObject.Find("Game Manager");
     spawnCreature     = gameManager.GetComponent <SpawnCreature>();
     creatureRigidBody = GetComponent <Rigidbody2D>();
 }