private void Awake()
 {
     //IL_0002: Unknown result type (might be due to invalid IL or missing references)
     //IL_0007: Expected O, but got Unknown
     //IL_001e: Unknown result type (might be due to invalid IL or missing references)
     _transform = this.get_transform();
     parameter  = MonoBehaviourSingleton <InGameSettingsManager> .I.fieldDrop;
     animator   = this.get_gameObject().GetComponentInChildren <Animator>();
     if (startAnimHash == -1)
     {
         startAnimHash = Animator.StringToHash("Base Layer.Pop");
     }
     if (endAnimHash == -1)
     {
         endAnimHash = Animator.StringToHash("Base Layer.Idle");
     }
     if (openAnimHash == -1)
     {
         openAnimHash = Animator.StringToHash("Base Layer.Open");
     }
     if (parameter.animEventData != null && animator != null)
     {
         animEventProcessor = new AnimEventProcessor(parameter.animEventData, animator, this);
     }
 }
    public static FieldDropObject CreateTreasureBox(Coop_Model_EnemyDefeat model, List <InGameManager.DropDeliveryInfo> deliveryList, List <InGameManager.DropItemInfo> itemList, UIDropAnnounce.COLOR color)
    {
        //IL_004a: Unknown result type (might be due to invalid IL or missing references)
        //IL_004f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0138: Unknown result type (might be due to invalid IL or missing references)
        //IL_013a: Unknown result type (might be due to invalid IL or missing references)
        //IL_013b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0140: Unknown result type (might be due to invalid IL or missing references)
        //IL_014b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0151: Unknown result type (might be due to invalid IL or missing references)
        //IL_0153: Unknown result type (might be due to invalid IL or missing references)
        //IL_016b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0170: Unknown result type (might be due to invalid IL or missing references)
        //IL_0182: Unknown result type (might be due to invalid IL or missing references)
        //IL_0187: Unknown result type (might be due to invalid IL or missing references)
        //IL_0196: Unknown result type (might be due to invalid IL or missing references)
        //IL_0198: Unknown result type (might be due to invalid IL or missing references)
        GameObject val = MonoBehaviourSingleton <InGameManager> .I.CreateTreasureBox(color);

        FieldDropObject fieldDropObject = val.GetComponent <FieldDropObject>();

        if (fieldDropObject == null)
        {
            fieldDropObject = val.AddComponent <FieldDropObject>();
        }
        fieldDropObject.itemInfo     = itemList;
        fieldDropObject.deliveryInfo = deliveryList;
        fieldDropObject.rewardId     = model.rewardId;
        fieldDropObject.isRare       = (color == UIDropAnnounce.COLOR.RARE);
        Vector3 zero = Vector3.get_zero();

        if (MonoBehaviourSingleton <InGameSettingsManager> .IsValid())
        {
            InGameSettingsManager.FieldDropItem fieldDrop = MonoBehaviourSingleton <InGameSettingsManager> .I.fieldDrop;
            float value  = Random.get_value();
            float value2 = Random.get_value();
            float value3 = Random.get_value();
            float num    = (!(Random.get_value() > 0.5f)) ? 1f : (-1f);
            float num2   = (!(Random.get_value() > 0.5f)) ? 1f : (-1f);
            zero._002Ector(Mathf.Lerp(fieldDrop.offsetMin.x, fieldDrop.offsetMax.x, value) * num, Mathf.Lerp(fieldDrop.offsetMin.y, fieldDrop.offsetMax.y, value2), Mathf.Lerp(fieldDrop.offsetMin.z, fieldDrop.offsetMax.z, value3) * num2);
        }
        Vector3 val2 = default(Vector3);

        val2._002Ector((float)model.x, 0f, (float)model.z);
        Vector3    target       = val2 + zero;
        int        obstacleMask = AIUtility.GetObstacleMask();
        RaycastHit hit          = default(RaycastHit);

        if (AIUtility.RaycastForTargetPos(val2, target, obstacleMask, out hit))
        {
            Vector3 point  = hit.get_point();
            float   x      = point.x;
            float   y      = target.y;
            Vector3 point2 = hit.get_point();
            target._002Ector(x, y, point2.z);
        }
        fieldDropObject.Drop(val2, target);
        return(fieldDropObject);
    }