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