void Start() { info = GetComponent <PetInfo>(); inventory = GameObject.Find("Pet Manager").GetComponent <Inventory>(); pet = inventory.CheckForItem(this.gameObject.name.Remove(this.gameObject.name.IndexOf("(Clone)"), 7)); info.TryGetStat("Speed", out speed); }
void Start() { info = this.GetComponent <PetInfo>(); currentMovementType = MovementType.Idle; info.TryGetStat("Speed", out movementSpeed); canFly = info.itemRef.movement.Equals("Aerial"); interaction = GameObject.Find("Pet Manager").GetComponent <ARObjectInteraction>(); }