// Use this for initialization void Start() { if (gameObject.tag == "fire") { currPet = new Pet(numPets, PetType.fire); } else if (gameObject.tag == "water") { currPet = new Pet(numPets, PetType.water); } else { currPet = new Pet(numPets, PetType.generic); } petID = numPets; print("curr num pets: " + numPets); numPets++; jumpVal = 20; gameObject.layer = LayerStack.assign(); currPet.setInstanceID(gameObject.GetInstanceID()); PlayerAttributes.chain.addToChain(currPet); }